gpt4 book ai didi

c# - 在 rtf 字符串的位置追加文本

转载 作者:可可西里 更新时间:2023-11-01 10:38:49 24 4
gpt4 key购买 nike

我想在文本框中附加文本,例如“World”,但不是使用 RichTextBoxWindows.Forms 函数。相反,我想指定要插入到 RichTextBox 的 Rtf 属性中的位置和字符串!那么,是否可以直接更新 rtf 字符串?

最佳答案

string rtfStuffs = this.richTextBox1.Rtf;
// Edit as you see fit...
this.richTextBox1.Rtf = rtfStuffs;

关于c# - 在 rtf 字符串的位置追加文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10371930/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com