Selection Property
- Namespace
TXTextControl.Web
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. dll
Description
Gets or sets the current selection in a text part. The property value is an object of the type Web.Selection. For more information see the description of the Web.Selection class.
Syntax
public Selection Selection { get; set; }Public Property Selection As SelectionExamples
The following example configures TextPart.Selection and checks the resulting web document component setting before it is used.
textPart.Selection = new TXTextControl.Web.Selection();
if (textPart.Selection != null)
{
Console.WriteLine("Selection is available for Text Part.");
}textPart.Selection = New TXTextControl.Web.Selection()
If textPart.Selection IsNot Nothing Then
Console.WriteLine("Selection is available for Text Part.")
End If