Class PasteAsyncCommand
Implements a command to paste the clipboard contents asynchronously.
Inherited Members
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
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
Implements
System.Windows.Input.ICommand