Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想text in particular place in RichtextBox在 wpf 中设置我的:
text in particular place in RichtextBox
richTextBox1.SelectionLength = text_length;
不起作用。
请试试这个。我希望它会帮助你。
RichTextBox richtexbox=(RichTextBox)(FindResource("richbox1")); richtexbox.Padding = new Thickness(15, 10, 12, 15);