How do I change RichTextBox paragraph spacing?

前端 未结 8 2013
暖寄归人
暖寄归人 2020-12-02 16:21

I am using a RichTextBox in WPF, and am trying to set the default paragraph spacing to 0 (so that there is no paragraph spacing). While I could do this in XAML, I would lik

8条回答
  •  隐瞒了意图╮
    2020-12-02 17:18

    Close, so you got the points. Actually it turned out to be setting the margin,

    p.Margin = new Thickness(0);
    

提交回复
热议问题