Class TextModeSelectionEndedEvent
Event published when a text selection ends (mouse released or selection cleared) in a TextModeSelectionManager.
Inherited Members
ScyllaEvent.IsCancelled
ScyllaEvent.StopPropagation()
Namespace: Scylla.TextMode
Assembly: ScyllaTextMode.dll
Syntax
public sealed class TextModeSelectionEndedEvent : ScyllaEvent
Constructors
TextModeSelectionEndedEvent(CellRange, bool, string, TextModeSelectionManager)
Creates a new selection ended event.
Declaration
public TextModeSelectionEndedEvent(CellRange finalRange, bool wasCleared, string selectedText, TextModeSelectionManager manager)
Parameters
| Type | Name | Description |
|---|---|---|
| CellRange | finalRange | The final selection range. |
| bool | wasCleared | Whether the selection was cleared. |
| string | selectedText | The text content of the selection. |
| TextModeSelectionManager | manager | The selection manager. |
Properties
FinalRange
The final selection range.
Declaration
public CellRange FinalRange { get; }
Property Value
| Type | Description |
|---|---|
| CellRange |
Manager
The selection manager that published this event.
Declaration
public TextModeSelectionManager Manager { get; }
Property Value
| Type | Description |
|---|---|
| TextModeSelectionManager |
SelectedText
The text content of the selection. Empty if the selection was cleared or empty.
Declaration
public string SelectedText { get; }
Property Value
| Type | Description |
|---|---|
| string |
WasCleared
Whether the selection was cleared (as opposed to completed by mouse-up).
Declaration
public bool WasCleared { get; }
Property Value
| Type | Description |
|---|---|
| bool |