Click or drag to resize
CanvasTextLayoutGetCaretPosition Method (Int32, Boolean, CanvasTextLayoutRegion)
Gets position where the caret (text cursor) would be, given the current text position and caret direction.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public Vector2 GetCaretPosition(
	int characterIndex,
	bool trailingSideOfCharacter,
	out CanvasTextLayoutRegion textLayoutRegion
)

Parameters

characterIndex
Type: SystemInt32
trailingSideOfCharacter
Type: SystemBoolean
textLayoutRegion
Type: Microsoft.Graphics.Canvas.TextCanvasTextLayoutRegion

Return Value

Type: Vector2
See Also