Table of Contents

Class RichTextSelectionChangedEventArgs

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Provides data for SelectionChanged.

public sealed class RichTextSelectionChangedEventArgs : EventArgs
Inheritance
RichTextSelectionChangedEventArgs
Inherited Members

Constructors

RichTextSelectionChangedEventArgs(TextSelectionState, TextSelectionState)

Creates directional selection-change data.

public RichTextSelectionChangedEventArgs(TextSelectionState oldSelection, TextSelectionState newSelection)

Parameters

oldSelection TextSelectionState

The preceding selection.

newSelection TextSelectionState

The current selection.

RichTextSelectionChangedEventArgs(TextSpan, TextSpan)

Initializes selection-change event data.

public RichTextSelectionChangedEventArgs(TextSpan oldRange, TextSpan newRange)

Parameters

oldRange TextSpan

The preceding selection range.

newRange TextSpan

The current selection range.

Properties

NewRange

Gets the current selection range.

public TextSpan NewRange { get; }

Property Value

TextSpan

NewSelection

Gets the current directional selection.

public TextSelectionState NewSelection { get; }

Property Value

TextSelectionState

OldRange

Gets the preceding selection range.

public TextSpan OldRange { get; }

Property Value

TextSpan

OldSelection

Gets the preceding directional selection.

public TextSelectionState OldSelection { get; }

Property Value

TextSelectionState