使用后面的C#代码获取多行文本框中的当前鼠标光标位置 [英] Get Current Mouse Cursor Position in a Multiline Textbox using C# code behind

查看:114
本文介绍了使用后面的C#代码获取多行文本框中的当前鼠标光标位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在搜索一个代码,通过它我可以从后面的C#代码获取Multiline TextBox控件中的当前鼠标位置.

基本上,我必须在当前鼠标光标所在的位置的多行文本框中插入一些给定的文本.

I am searching for a code by which i could get the current mouse position in a Multiline TextBox control from C# code behind.

Basically i have to insert some given text in a Multiline Text box at the position where the mouse cursor presently is.

推荐答案

查找SelectionStart属性.

HTH
Look up the SelectionStart property.

HTH


这篇关于使用后面的C#代码获取多行文本框中的当前鼠标光标位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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