Reputation: 23
Is there any way to change the line spacing or line height of a TextBox
in a uwp?
wpf:
TextBlock.SetLineHeigh(textboxName, 30)
but uwp is not allow?
Upvotes: 1
Views: 589
Reputation: 32775
Is there any way to change the line spacing or line height of a TextBox in a uwp?
UWP TextBox does not support set line height. Please use RichEditBox
to replace.
Derive from rob's reply,
RichEditBox
can represent rich text. The RichEditBox's underlying engine is more similar to the one in WordPad.You can change the formatting in the
RichEditBox
by manipulating properties on theDocument
. You can set the line spacing by getting anITextRange's ParagraphFormat
andcallingITextParagraphFormat.SetLineSpacing
method.
Upvotes: 1