[英]How to set Kerning Character Spacing in WPF RichTextBox?
我找不到如何在RichTextBox中設置水平字符間距。
Hello, World! H ello , W orld !
我只能使用C#設置垂直線高。
Paragraph p = new Paragraph();
p.LineHeight = 50;
rtb1.Document = new FlowDocument(p);
p.Inlines.Add(new Run("Hello, World!"));
XAML的外部優勢。
<RichTextBox x:Name="rtb1"
HorizontalAlignment="Left"
Height="600"
Width="300"
Margin="188,61,0,0"
VerticalAlignment="Top">
<RichTextBox.Resources>
<Style TargetType="{x:Type Paragraph}">
<Setter Property="Margin" Value="50"/>
</Style>
</RichTextBox.Resources>
</RichTextBox>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.