Docsv3.31.0
Back to API Reference
Class

PastePlainCommand

Inherits:TextCommand

Pastes the clipboard's plain text, leaving its formatting behind. Applies while the field is editable and a paste would take formatting from the clipboard — so it never repeats PasteCommand.

protected string DefaultTitle{ get }

Label shown while no title is set — by default the type name in sentence case without its Command suffix, so SearchWebCommand reads "Search web".

public override bool IsApplicable(in TextCommandContext context)

Whether the command applies to the field's current state. A menu hides or disables a command that does not apply, and a command runs only while it applies.

public override void Execute(in TextCommandContext context)

Runs the command against the field's current state, to which it applies (IsApplicable).