PeachDrawing.Text
PeachDrawing.Text.Layout
TextPosition Struct
A place in the text of a paragraph.
public readonly record struct TextPosition : System.IEquatable<PeachDrawing.Text.Layout.TextPosition>
Implements System.IEquatable<TextPosition>
| Constructors | |
|---|---|
| TextPosition(int, TextAffinity) | A place in the text of a paragraph. |
| Properties | |
|---|---|
| Affinity | Which line the position is on when Index is where a soft line break falls. |
| Index | The UTF-16 offset of the boundary between two characters, from 0 to the length of the text. |