【WPF】操作RichTextBox(取值、赋值、清空、滚动条自动滚动实例、文本自动滚动实例)

1、取值、赋值、清空

https://www.zhaokeli.com/article/8181.html

 

2、滚动条自动滚动实例、文本自动滚动实例

https://www.cnblogs.com/tianma3798/p/5929501.html

 

3、保存控件内容转为字符串

     //保存系统提示信息到文本
    TextRange textRange = new TextRange(rb_name.Document.ContentStart, rb_name.Document.ContentEnd);
    string str = textRange.Text;

 

posted @ 2021-05-22 14:06  不溯流光  阅读(977)  评论(0编辑  收藏  举报