PastingFromClipboardEventArgs Class
Definition
Provides data specific to a Avalonia.Controls.TextBox.PastingFromClipboard event.
public class PastingFromClipboardEventArgs
Constructors
| Name | Description |
|---|---|
| PastingFromClipboardEventArgs | Initializes a new instance of the Avalonia.Controls.PastingFromClipboardEventArgs class. |
PastingFromClipboardEventArgs Constructor
Initializes a new instance of the Avalonia.Controls.PastingFromClipboardEventArgs class.
public PastingFromClipboardEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent, Avalonia.Input.Platform.IClipboard clipboard)
Parameters
routedEvent Avalonia.Interactivity.RoutedEvent
The routed event associated with these event args.
clipboard Avalonia.Input.Platform.IClipboard
The clipboard being pasted from.
Properties
| Name | Description |
|---|---|
| Clipboard | Gets the clipboard being pasted from. This is either the system clipboard or, when pasting via middle-click on platforms supporting it, the primary selection (Avalonia.Input.Platform.ClipboardType.PrimarySelection). Null when no clipboard is available; a handler can still handle the event to provide custom paste behavior. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets or sets the source object that raised the routed event. Inherited from RoutedEventArgs. |
Clipboard Property
Gets the clipboard being pasted from. This is either the system clipboard or, when pasting via middle-click on platforms supporting it, the primary selection (Avalonia.Input.Platform.ClipboardType.PrimarySelection). Null when no clipboard is available; a handler can still handle the event to provide custom paste behavior.
public Avalonia.Input.Platform.IClipboard Clipboard { get; set; }