menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PasteAsyncCommand - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PasteAsyncCommand

    Implements a command to paste the clipboard contents asynchronously.

    Inheritance
    System.Object
    AsyncCommandBase
    PasteAsyncCommand
    Implements
    IAsyncCommand
    System.Windows.Input.ICommand
    Inherited Members
    AsyncCommandBase.CanExecuteChanged
    AsyncCommandBase.Execute(Object)
    AsyncCommandBase.OwnerControl
    Namespace: Syncfusion.UI.Xaml.RichTextBoxAdv
    Assembly: Syncfusion.SfRichTextBoxAdv.UWP.dll
    Syntax
    public class PasteAsyncCommand : AsyncCommandBase, IAsyncCommand, ICommand

    Constructors

    PasteAsyncCommand(Func<Task>, SfRichTextBoxAdv)

    Initializes a new instance of the PasteAsyncCommand class for the specified SfRichTextBoxAdv.

    Declaration
    public PasteAsyncCommand(Func<Task> command, SfRichTextBoxAdv richTextBoxAdv)
    Parameters
    Type Name Description
    System.Func<System.Threading.Tasks.Task> command

    The Function.

    SfRichTextBoxAdv richTextBoxAdv

    The SfRichTextBoxAdv instance to which the PasteAsyncCommand is associated.

    Methods

    CanExecute(Object)

    Defines the method that determines whether the paste async command can execute in its current state.

    Declaration
    public override bool CanExecute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    Data used by the command. If the command does not require data to be passed, this object can be set to null.

    Returns
    Type Description
    System.Boolean

    True if this command can be executed.

    Overrides
    AsyncCommandBase.CanExecute(Object)

    ExecuteAsync(Object)

    Returns the function to be called when the paste async command is invoked.

    Declaration
    public override Task ExecuteAsync(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    Data used by the command. If the command does not require data to be passed, this object can be set to null.

    Returns
    Type
    System.Threading.Tasks.Task
    Overrides
    AsyncCommandBase.ExecuteAsync(Object)

    Implements

    IAsyncCommand
    System.Windows.Input.ICommand

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved