Font.GetCharacterPositions Method

Returns an array of x-coordinates of each character in a given text string.

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

Syntax

C#
public float[] GetCharacterPositions(
	string text,
	float startX
)

Parameters

text

Type: System.String

The string to retrieve character positions from.
startX

Type: System.Single

The position of the beginning of the string (regardless to the HorizontalAlignment).

Return Value

The array of containing X-coordinates of the characters in a given string.

Remarks

Note

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

See Also

Reference