This documentation is for the old version. Go to the latest Graphics Mill docs

Font.GetCharacterPositions Method

Returns an array of horizontal positions of each character in given text string.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Function GetCharacterPositions ( _
	text As String, _
	startX As Single _
) As Single()
C#
public float[] GetCharacterPositions(
	string text,
	float startX
)

Parameters

text

Type: System.String

Text string to retrieve character positions from.
startX

Type: System.Single

Position of the beginning of the string (regardless to the HorizontalAlignment).

Return Value

An array containing X-coordinates of the characters of given string.

Remarks

Note

GdiGraphics can have Transform matrix initialized. This way you can draw text rotated, scaled, or sheared. However this method does not take it into account and returns values as if Transform is reset to identity matrix (sets no transformation).

See Also

Reference