我正在使用TextFormatter制作WPF文本编辑器.我需要在每个段落中缩进第二行.
第二行中的缩进宽度应该类似于第一行上第一个单词的宽度,包括第一个单词后面的空格.像这样的东西:
Indent of second line in Indentation Inde
second line in Indentation Indenta
of second line in Indentation of second l
ine in Indentation of second line in Inde
ntation of second line in
Run Code Online (Sandbox Code Playgroud)
第二件事:段落的最后一行应该在中心.
如何实现这一目标?
提前致谢!!