As a continue to this question: How to center headings at KOMA-Script I'm trying to center the parts...
MWE:
\documentclass{scrartcl}
\usepackage{adforn}
\setkomafont{part}{\itshape}
\renewcommand\partlineswithprefixformat[3]{ #2 \centering{\adforn{36}\hbox{#3\adforn{64}}}}
\begin{document}
\part{ABC}
\end{document}
I want that ABC will be at the center (the second line), without using the \hfill command....
Do you know how can I do it?
And if I want that also the Part I. will be centered - how can I do it?
Thank you!

scrartclonly the second line centered, atscrbookboth centered, but I'm usingscrartcl)? Thank you!! – heblyx Apr 22 '19 at 22:25scrartcl. Please see my updated code. – Bernard Apr 22 '19 at 22:44\letraggedpart\centering. If you code instead:\let\raggedpart\raggedleft, you'll have the first line flushright, and the second line centred. – Bernard Apr 23 '19 at 08:37