当前位置:首页>维修大全>综合>

关于VB中的find用法(vbfind函数视频)

关于VB中的find用法(vbfind函数视频)

更新时间:2024-02-08 17:58:51

关于VB中的find用法

重载有:

public int Find(char[ ] characterSet)public int Find(char[ ] characterSet, int start)public int Find(char[ ] characterSet, int start, int end)public int Find(string str)public int Find(string str, System.Windows.Forms.RichTextBoxFinds options)public int Find(string str, int start, System.Windows.Forms.RichTextBoxFinds options)public int Find(string str, int start, int end, System.Windows.Forms.RichTextBoxFinds options)characterSet和str:指要在控件中定位的文本start:控件文本中开始搜索的位置end:控件文本中结束搜索的位置。此值必须等于 -1 或者大于或等于 start 参数options:System.Windows.Forms.RichTextBoxFinds 值的按位组合一般来讲用Find(str, start, end)就行了,你使用后,如果options不为NoHighlight,就会自动在文本框中选中,然后使用richtextbox.copy即可复制

更多栏目