开发者

Is there a way to set LineHeight in a Silverlight 4 RichTextBox?

The TextBlock control ha开发者_如何学JAVAs LineHeight. Does anyone know a good way to set LineHeight in the RichTextBox Control in Silverlight 4?


Hack: This seems to cause all the lines (even when wrapped) to be the height that FontSize 26 would cause.

Run run = new Run();

run.FontSize = 26;

run.Text = "";

Par.Inlines.Add(run);

run = new Run();

run.Text = "long text here...";

run.FontSize = 12;

Par.Inlines.Add(run);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜