Spread WinForms 15
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / GetPositionFromCharIndex Method
The index of the character for which to retrieve the location


In This Topic
GetPositionFromCharIndex Method
In This Topic
Retrieves the location within the control at the specified character index.
Syntax
'Declaration
 
Public Overridable Function GetPositionFromCharIndex( _
   ByVal index As Integer _
) As Point
 
'Usage
 
Dim instance As GcTextBox
Dim index As Integer
Dim value As Point
 
value = instance.GetPositionFromCharIndex(index)

Parameters

index
The index of the character for which to retrieve the location

Return Value

The location of the specified character
Remarks
If the parameter is less than zero or bigger than the count of all characters, this method returns -1.
See Also