| CanvasTextLayout Methods |
The CanvasTextLayout type exposes the following members.
| Name | Description | |
|---|---|---|
| Dispose | Releases all resources used by the CanvasTextLayout. | |
| DrawToTextRenderer(ICanvasTextRenderer, Vector2) | Draws this text layout to an application-defined text renderer. | |
| DrawToTextRenderer(ICanvasTextRenderer, Single, Single) | Draws this text layout to an application-defined text renderer. | |
| GetBrush | Gets the brush associated with a character index in the text layout. | |
| GetCaretPosition(Int32, Boolean) | Gets position where the caret (text cursor) would be, given the current text position and caret direction. | |
| GetCaretPosition(Int32, Boolean, CanvasTextLayoutRegion) | Gets position where the caret (text cursor) would be, given the current text position and caret direction. | |
| GetCharacterRegions | Gets an array of descriptions of the range of text. | |
| GetCustomBrush | Gets the custom brush associated with a character index in the text layout. | |
| GetFontFamily | Gets the font family of the character at the specified position. | |
| GetFontSize | Gets the font size for the character at the specified position. | |
| GetFontStretch | Gets the font stretch for the character at the specified position. | |
| GetFontStyle | Gets the font style for the character at the specified position. | |
| GetFontWeight | Gets the font weight for the character at the specified position. | |
| GetFormatChangeIndices | Gets an array of position indices at which the text format changes. | |
| GetGlyphOrientationTransform | Gets a transform matrix to use when drawing a glyph run. | |
| GetInlineObject | Gets the inline object for the character at the position specified. | |
| GetLeadingCharacterSpacing | Gets the the spacing before the character specified, in reading order. | |
| GetLocaleName | Specifies the locale name for the character at the specified position. | |
| GetMinimumCharacterAdvance | Gets the minimum advance of the character specified. | |
| GetMinimumLineLength | Gets the minimum possible width/height the layout can be set to, without any emergency breakings between the characters of whole words. | |
| GetPairKerning | Gets whether pair kerning is used for the character at the position specified. | |
| GetStrikethrough | Gets whether the character at the specified position has strikethrough. | |
| GetTrailingCharacterSpacing | Gets the spacing after the character specified, in reading order. | |
| GetTypography |
Gets the typography features that affect the character at the position specified.
| |
| GetUnderline | Gets whether the character at the specified position is underlined. | |
| HitTest(Vector2) | Gets whether the point overlaps with any text in the text layout. | |
| HitTest(Single, Single) | Gets whether the point overlaps with any text in the text layout. | |
| HitTest(Vector2, CanvasTextLayoutRegion) | Gets whether the point overlaps with any text in the text layout. | |
| HitTest(Single, Single, CanvasTextLayoutRegion) | Gets whether the point overlaps with any text in the text layout. | |
| HitTest(Vector2, CanvasTextLayoutRegion, Boolean) | Gets whether the point overlaps with any text in the text layout. | |
| HitTest(Single, Single, CanvasTextLayoutRegion, Boolean) | Gets whether the point overlaps with any text in the text layout. | |
| SetBrush | Sets the brush associated with a group of characters in the text layout. | |
| SetCharacterSpacing | Sets the spacing between characters. | |
| SetColor | Sets the color associated with a group of characters in the text layout. | |
| SetCustomBrush | Sets the custom brush associated with a group of characters in the text layout. | |
| SetFontFamily | Sets the font family of the specified group of characters. | |
| SetFontSize | Sets the font size of the specified group of characters. | |
| SetFontStretch | Sets the font stretch of the specified group of characters. | |
| SetFontStyle | Sets the font style of the specified group of characters. | |
| SetFontWeight | Sets the font weight of the specified group of characters. | |
| SetInlineObject | Sets the inline object for a specified group of characters. | |
| SetLocaleName | Sets the local name of the specified group of characters. | |
| SetPairKerning | Sets whether pair kerning is used for the group of characters specified. | |
| SetStrikethrough | Applies strikethrough formatting to the specified group of characters. | |
| SetTypography |
Sets the typography features that affect a specified group of characters.
| |
| SetUnderline | Applies underline formatting to the specified group of characters. |