Click or drag to resize
CanvasTextLayout Methods

The CanvasTextLayout type exposes the following members.

Methods
  NameDescription
Public methodDispose
Releases all resources used by the CanvasTextLayout.
Public methodDrawToTextRenderer(ICanvasTextRenderer, Vector2)
Draws this text layout to an application-defined text renderer.
Public methodDrawToTextRenderer(ICanvasTextRenderer, Single, Single)
Draws this text layout to an application-defined text renderer.
Public methodGetBrush
Gets the brush associated with a character index in the text layout.
Public methodGetCaretPosition(Int32, Boolean)
Gets position where the caret (text cursor) would be, given the current text position and caret direction.
Public methodGetCaretPosition(Int32, Boolean, CanvasTextLayoutRegion)
Gets position where the caret (text cursor) would be, given the current text position and caret direction.
Public methodGetCharacterRegions
Gets an array of descriptions of the range of text.
Public methodGetCustomBrush
Gets the custom brush associated with a character index in the text layout.
Public methodGetFontFamily
Gets the font family of the character at the specified position.
Public methodGetFontSize
Gets the font size for the character at the specified position.
Public methodGetFontStretch
Gets the font stretch for the character at the specified position.
Public methodGetFontStyle
Gets the font style for the character at the specified position.
Public methodGetFontWeight
Gets the font weight for the character at the specified position.
Public methodGetFormatChangeIndices
Gets an array of position indices at which the text format changes.
Public methodStatic memberGetGlyphOrientationTransform
Gets a transform matrix to use when drawing a glyph run.
Public methodGetInlineObject
Gets the inline object for the character at the position specified.
Public methodGetLeadingCharacterSpacing
Gets the the spacing before the character specified, in reading order.
Public methodGetLocaleName
Specifies the locale name for the character at the specified position.
Public methodGetMinimumCharacterAdvance
Gets the minimum advance of the character specified.
Public methodGetMinimumLineLength
Gets the minimum possible width/height the layout can be set to, without any emergency breakings between the characters of whole words.
Public methodGetPairKerning
Gets whether pair kerning is used for the character at the position specified.
Public methodGetStrikethrough
Gets whether the character at the specified position has strikethrough.
Public methodGetTrailingCharacterSpacing
Gets the spacing after the character specified, in reading order.
Public methodGetTypography
Gets the typography features that affect the character at the position specified.
Public methodGetUnderline
Gets whether the character at the specified position is underlined.
Public methodHitTest(Vector2)
Gets whether the point overlaps with any text in the text layout.
Public methodHitTest(Single, Single)
Gets whether the point overlaps with any text in the text layout.
Public methodHitTest(Vector2, CanvasTextLayoutRegion)
Gets whether the point overlaps with any text in the text layout.
Public methodHitTest(Single, Single, CanvasTextLayoutRegion)
Gets whether the point overlaps with any text in the text layout.
Public methodHitTest(Vector2, CanvasTextLayoutRegion, Boolean)
Gets whether the point overlaps with any text in the text layout.
Public methodHitTest(Single, Single, CanvasTextLayoutRegion, Boolean)
Gets whether the point overlaps with any text in the text layout.
Public methodSetBrush
Sets the brush associated with a group of characters in the text layout.
Public methodSetCharacterSpacing
Sets the spacing between characters.
Public methodSetColor
Sets the color associated with a group of characters in the text layout.
Public methodSetCustomBrush
Sets the custom brush associated with a group of characters in the text layout.
Public methodSetFontFamily
Sets the font family of the specified group of characters.
Public methodSetFontSize
Sets the font size of the specified group of characters.
Public methodSetFontStretch
Sets the font stretch of the specified group of characters.
Public methodSetFontStyle
Sets the font style of the specified group of characters.
Public methodSetFontWeight
Sets the font weight of the specified group of characters.
Public methodSetInlineObject
Sets the inline object for a specified group of characters.
Public methodSetLocaleName
Sets the local name of the specified group of characters.
Public methodSetPairKerning
Sets whether pair kerning is used for the group of characters specified.
Public methodSetStrikethrough
Applies strikethrough formatting to the specified group of characters.
Public methodSetTypography
Sets the typography features that affect a specified group of characters.
Public methodSetUnderline
Applies underline formatting to the specified group of characters.
Top
See Also