Skip to content

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

NameSummary
DocumentGets the owning document.
StartGets the start pointer.
EndGets the end pointer.
LengthGets the selection length.
IsEmptyGets a value indicating whether the selection is empty.
TextGets the text contained within the selection.

Methods

NameSummary
SelectReplaces the selection with the specified range.
SelectAllSelects the entire document.
ClearClears the current selection.
ApplyFormattingApplies formatting to the current selection.
GetRangeGets the range represented by the selection.
Inherited members