Export (0) Print
Expand All

MaskedTextBox.GetCharIndexFromPosition Method

This member overrides TextBoxBase.GetCharIndexFromPosition(Point), and more complete documentation might be available in that topic.

Retrieves the index of the character nearest to the specified location.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public override int GetCharIndexFromPosition(
	Point pt
)

Parameters

pt
Type: System.Drawing.Point

The location to search.

Return Value

Type: System.Int32
The zero-based character index at the specified location.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft