CanPaste Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Informs whether the clipboard contains a format that can be pasted into a Text Control document. The property's value also depends on the DocumentPermissions.ReadOnly property and the currently set edit mode.
Syntax
public bool CanPaste { get; }Public ReadOnly Property CanPaste As BooleanExamples
The following example checks can paste before performing the related operation.
if (textControl.CanPaste)
{
textControl.Paste();
}If textControl.CanPaste Then
textControl.Paste()
End IfLimitations
Runtime only.
Read only.