Table of Contents

Class ClipboardEventDispatchExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

Clipboard event dispatch helper extension methods.

public static class ClipboardEventDispatchExtensions
Inheritance
ClipboardEventDispatchExtensions
Inherited Members

Methods

BeforeCopy(IElement)

Raises the @onbeforecopy event on element, passing an empty (Empty) to the event handler.

public static void BeforeCopy(this IElement element)

Parameters

element IElement

The element to raise the event on.

BeforeCopyAsync(IElement)

Raises the @onbeforecopy event on element, passing an empty (Empty) to the event handler.

public static Task BeforeCopyAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

BeforeCut(IElement)

Raises the @onbeforecut event on element, passing an empty (Empty) to the event handler.

public static void BeforeCut(this IElement element)

Parameters

element IElement

The element to raise the event on.

BeforeCutAsync(IElement)

Raises the @onbeforecut event on element, passing an empty (Empty) to the event handler.

public static Task BeforeCutAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

BeforePaste(IElement)

Raises the @onbeforepaste event on element, passing an empty (Empty) to the event handler.

public static void BeforePaste(this IElement element)

Parameters

element IElement

The element to raise the event on.

BeforePasteAsync(IElement)

Raises the @onbeforepaste event on element, passing an empty (Empty) to the event handler.

public static Task BeforePasteAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

Copy(IElement, ClipboardEventArgs)

Raises the @oncopy event on element, passing the provided eventArgs to the event handler.

public static void Copy(this IElement element, ClipboardEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ClipboardEventArgs

The event arguments to pass to the event handler.

Copy(IElement, string?)

Raises the @oncopy event on element, passing the provided properties to the event handler via a ClipboardEventArgs object.

public static void Copy(this IElement element, string? type = null)

Parameters

element IElement

The element to raise the event on.

type string

The type of the event.

CopyAsync(IElement, ClipboardEventArgs)

Raises the @oncopy event on element, passing the provided eventArgs to the event handler.

public static Task CopyAsync(this IElement element, ClipboardEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ClipboardEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

Cut(IElement, ClipboardEventArgs)

Raises the @oncut event on element, passing the provided eventArgs to the event handler.

public static void Cut(this IElement element, ClipboardEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ClipboardEventArgs

The event arguments to pass to the event handler.

Cut(IElement, string)

Raises the @oncut event on element, passing the provided properties to the event handler via a ClipboardEventArgs object.

public static void Cut(this IElement element, string type = null)

Parameters

element IElement

The element to raise the event on.

type string

The type of the event.

CutAsync(IElement, ClipboardEventArgs)

Raises the @oncut event on element, passing the provided eventArgs to the event handler.

public static Task CutAsync(this IElement element, ClipboardEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ClipboardEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

Paste(IElement, ClipboardEventArgs)

Raises the @onpaste event on element, passing the provided eventArgs to the event handler.

public static void Paste(this IElement element, ClipboardEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ClipboardEventArgs

The event arguments to pass to the event handler.

Paste(IElement, string)

Raises the @onpaste event on element, passing the provided properties to the event handler via a ClipboardEventArgs object.

public static void Paste(this IElement element, string type = null)

Parameters

element IElement

The element to raise the event on.

type string

The type of the event.

PasteAsync(IElement, ClipboardEventArgs)

Raises the @onpaste event on element, passing the provided eventArgs to the event handler.

public static Task PasteAsync(this IElement element, ClipboardEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ClipboardEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.