CanCopy Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Informs whether a part of a 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; }Public ReadOnly Property CanCopy As BooleanExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.CanCopy.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
if (textViewGenerator.CanCopy)
{
textViewGenerator.Copy();
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
If textViewGenerator.CanCopy Then
textViewGenerator.Copy()
End IfLimitations
Runtime only.
Read only.