TX Text Control .NET for WPF

CanCopy Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Informs whether a part of a Text Control document has been selected and can be copied to the clipboard. The property's value also depends on the DocumentPermissions.AllowCopy property and the currently set edit mode.

Syntax

public bool CanCopy { get; }

Examples

The following example checks can copy before performing the related operation.

if (textControl.CanCopy)
{
    textControl.Copy();
}

Limitations

Runtime only.

Read only.