PasteAction Class
Definition
Action that pastes content from the clipboard.
public class PasteAction
Remarks
Probes the clipboard for the richest available format that the editor can
deserialize (RTF first via Avalonia.Controls.Documents.Primitives.Actions.EditorClipboardSerializers.Default,
then plain text). The resulting DocumentSnapshot is grafted into the
current selection through TextRange.InsertSnapshot, preserving
block, inline, and formatting structure.
Constructors
| Name | Description |
|---|---|
| PasteAction | No summary available. |
PasteAction Constructor
public PasteAction()
Methods
| Name | Description |
|---|---|
| CanExecute | No summary available. |
| Execute | No summary available. |
| ExecuteAsync | No summary available. |
| GetState | Gets the current state of the action. Inherited from EditorAction. |
CanExecute Method
public bool CanExecute(Avalonia.Controls.Documents.Primitives.ITextEditorHost host)
Parameters
host Avalonia.Controls.Documents.Primitives.ITextEditorHost
Returns
bool
Execute Method
public void Execute(Avalonia.Controls.Documents.Primitives.ITextEditorHost host)
Parameters
ExecuteAsync Method
public System.Threading.Tasks.Task ExecuteAsync(Avalonia.Controls.Documents.Primitives.ITextEditorHost host)
Parameters
host Avalonia.Controls.Documents.Primitives.ITextEditorHost
Returns
System.Threading.Tasks.Task
Properties
| Name | Description |
|---|---|
| DisplayName | No summary available. |
| Gesture | No summary available. |
| Id | No summary available. |
DisplayName Property
public string DisplayName { get; set; }
Gesture Property
public Avalonia.Input.KeyGesture Gesture { get; set; }
Id Property
public string Id { get; set; }