MaskedTextBox::GetCharIndexFromPosition Method (Point)

 

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:
virtual int GetCharIndexFromPosition(
	Point pt
) override

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
Available since 2.0
Return to top
Show: