Version

PointFromCharacterIndex Method

Returns a Point in text area coordinates that represents the location of the upper left corner of the character with the specified zero based character index within the line.
Syntax
'Declaration
 
Public Function PointFromCharacterIndex( _
   ByVal characterIndex As Integer _
) As Point
public Point PointFromCharacterIndex( 
   int characterIndex
)

Parameters

characterIndex
The zero based index of the character whose pixel location is to be returned.

Return Value

A Point in text area coordinates that represents the location of the top left corner of the character with the specified zero based character index within the line.
Remarks

Note: If a character index is specified that is beyond the last character on the line, a point representing the pixel location of the last character on the line is returned.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also