最后插入富文本框中 [英] insert at last in rich text Box

查看:81
本文介绍了最后插入富文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想最后在RichTextBox中插入一个元素,所以我想要一个可以指定插入位置的方法.
请帮帮我.
或者,在richtextbox中有一个像word一样的表,所以我可以在最后一行打印.
我曾经使用过方法richtextbox.Append();,但是该文本显示在上一文本的末尾,因此请为我提供解决方案.

I want to insert one element in RichTextBox at the end so I want a method in which I can specify the position at which I am inserting.
Please help me.
Or, there is a table in richtextbox like word so I can print in last row.
I had used the method richtextbox.Append(); but the text appears at the end of the Previous text so give me solution for that.

推荐答案

您可能需要设置插入符号位置(使用CaretPosition属性或Select(pos, pos)方法),然后在该点插入文本.

You probably need to set the caret position (either with the CaretPosition property or with Select(pos, pos) method), and then insert the text at that point.


这篇关于最后插入富文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆