TextSelection class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.TextSelection
Modifiers: public sealed
Summary¶
Represents a selection within a FlowDocument.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Properties¶
| Name | Summary |
|---|---|
| Document | Gets the owning document. |
| Start | Gets the start pointer. |
| End | Gets the end pointer. |
| Length | Gets the selection length. |
| IsEmpty | Gets a value indicating whether the selection is empty. |
| Text | Gets the text contained within the selection. |
Methods¶
| Name | Summary |
|---|---|
| Select | Replaces the selection with the specified range. |
| SelectAll | Selects the entire document. |
| Clear | Clears the current selection. |
| ApplyFormatting | Applies formatting to the current selection. |
| GetRange | Gets the range represented by the selection. |