TextEditorKeyboard Class
Definition
Extends Avalonia.Controls.Documents.Primitives.Components.TextViewKeyboard with editing commands (delete, cut, paste, undo/redo, formatting).
public class TextEditorKeyboard
Constructors
| Name | Description |
|---|---|
| TextEditorKeyboard | No summary available. |
TextEditorKeyboard Constructor
public TextEditorKeyboard()
Methods
| Name | Description |
|---|---|
| Copy | Copies the current selection to the clipboard, including the RTF rich-format payload, by delegating to Avalonia.Controls.Documents.Primitives.Actions.EditorActions.Copy. |
| Cut | Cuts the current selection to the clipboard. |
Copy Method
Copies the current selection to the clipboard, including the RTF rich-format payload, by delegating to Avalonia.Controls.Documents.Primitives.Actions.EditorActions.Copy.
public void Copy()
Cut Method
Cuts the current selection to the clipboard.
public void Cut()
Remarks
Delegates to Avalonia.Controls.Documents.Primitives.Actions.EditorActions.Cut so the keyboard shortcut and toolbar/menu paths share one implementation, including the rich-format (RTF) clipboard payload published by Avalonia.Controls.Documents.Primitives.Components.ClipboardOperations.CutAsync(Avalonia.Controls.TextSelection,Avalonia.Visual,System.Collections.Generic.IReadOnlyList{Avalonia.Controls.Documents.Serialization.IDocumentSerializer}).