CanvasTextLayout.GetCaretPosition Method (Int32, Boolean) |
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
Syntaxpublic Vector2 GetCaretPosition(
int characterIndex,
bool trailingSideOfCharacter
)
Parameters
- characterIndex
- Type: System.Int32
- trailingSideOfCharacter
- Type: System.Boolean
Return Value
Type:
Vector2
See Also