Skip to main content

PastingFromClipboardEventArgs Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Provides data specific to a Avalonia.Controls.TextBox.PastingFromClipboard event.

public class PastingFromClipboardEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> PastingFromClipboardEventArgs

Constructors​

NameDescription
PastingFromClipboardEventArgsInitializes 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​

NameDescription
ClipboardGets 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.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets 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; }