MaskedTextBox.GetCharFromPosition Method (Point)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves the character that is closest to the specified location within the control.

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

Public Overrides Function GetCharFromPosition (
	pt As Point
) As Char

Parameters

pt
Type: System.Drawing.Point

The location from which to seek the nearest character.

Return Value

Type: System.Char

The character at the specified location.

.NET Framework
Available since 2.0
Return to top
Show: