Class TextLayout
- Namespace
- Forma
- Assembly
- Forma.dll
public sealed class TextLayout
- Inheritance
-
TextLayout
- Inherited Members
-
Properties
Bounds
public RectangleF Bounds { get; }
Property Value
- RectangleF
Clusters
public IReadOnlyList<TextLayoutCluster> Clusters { get; }
Property Value
- IReadOnlyList<TextLayoutCluster>
Font
public UIFont Font { get; }
Property Value
- UIFont
Lines
public IReadOnlyList<TextLayoutLine> Lines { get; }
Property Value
- IReadOnlyList<TextLayoutLine>
Options
public TextLayoutOptions Options { get; }
Property Value
- TextLayoutOptions
Runs
public IReadOnlyList<TextLayoutRun> Runs { get; }
Property Value
- IReadOnlyList<TextLayoutRun>
Size
public Vector2 Size { get; }
Property Value
- Vector2
Text
public string Text { get; }
Property Value
- string
VisibleGlyphs
public IReadOnlyList<TextLayoutGlyph> VisibleGlyphs { get; }
Property Value
- IReadOnlyList<TextLayoutGlyph>
VisibleRange
public TextLayoutRange VisibleRange { get; }
Property Value
- TextLayoutRange
VisibleRanges
public IReadOnlyList<TextLayoutRange> VisibleRanges { get; }
Property Value
- IReadOnlyList<TextLayoutRange>
VisualClusters
public IReadOnlyList<TextLayoutCluster> VisualClusters { get; }
Property Value
- IReadOnlyList<TextLayoutCluster>
Methods
GetCaretPosition(int)
public Vector2 GetCaretPosition(int utf16Index)
Parameters
utf16Index int
Returns
- Vector2
GetClusterIndex(int)
public int GetClusterIndex(int utf16Index)
Parameters
utf16Index int
Returns
- int
GetNextGraphemeBoundary(int)
public int GetNextGraphemeBoundary(int utf16Index)
Parameters
utf16Index int
Returns
- int
GetNextWordBoundary(int)
public int GetNextWordBoundary(int utf16Index)
Parameters
utf16Index int
Returns
- int
GetPreviousGraphemeBoundary(int)
public int GetPreviousGraphemeBoundary(int utf16Index)
Parameters
utf16Index int
Returns
- int
GetPreviousWordBoundary(int)
public int GetPreviousWordBoundary(int utf16Index)
Parameters
utf16Index int
Returns
- int
GetRangeBounds(int, int)
public RectangleF GetRangeBounds(int start, int length)
Parameters
start int
length int
Returns
- RectangleF
GetSelectionRectangles(int, int)
public IReadOnlyList<RectangleF> GetSelectionRectangles(int start, int length)
Parameters
start int
length int
Returns
- IReadOnlyList<RectangleF>
GetWordBoundary(int)
public TextLayoutRange GetWordBoundary(int utf16Index)
Parameters
utf16Index int
Returns
- TextLayoutRange
HitTest(Vector2)
public int HitTest(Vector2 position)
Parameters
position Vector2
Returns
- int
IsUtf16IndexVisible(int)
public bool IsUtf16IndexVisible(int utf16Index)
Parameters
utf16Index int
Returns
- bool