TextBox.GetCharacterIndexFromPoint(Point, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the zero-based index of the character that is closest to the specified point.
public:
int GetCharacterIndexFromPoint(System::Windows::Point point, bool snapToText);
public int GetCharacterIndexFromPoint (System.Windows.Point point, bool snapToText);
member this.GetCharacterIndexFromPoint : System.Windows.Point * bool -> int
Public Function GetCharacterIndexFromPoint (point As Point, snapToText As Boolean) As Integer
Parameters
- snapToText
- Boolean
true
to return the nearest index if there is no character at the specified point; false
to return -1 if there is no character at the specified point.
Returns
The index of the character that is closest to the specified point, or -1 if no valid index can be found.
Applies to
See also
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.