Selection Constructor
- Namespace
TXTextControl.Web
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. dll
Description
Creates a new instance of the Web.Selection class.
Syntax
Selection()
Creates an empty Selection object with all properties set to their default values.
public Selection();Public Sub New()Selection(int, int)
Creates an instance of the Web.Selection class with the specified start value and length.
public Selection(int start, int length);Public Sub New(start As Integer, length As Integer)| Parameter | Description |
|---|---|
| start | Specifies the selection's start position. |
| length | Specifies the number of selected characters. |
Examples
The following example creates a Selection instance and verifies that it is ready for the surrounding document workflow.
TXTextControl.Web.Selection selection = new();
Console.WriteLine("Selection is ready.");Dim selection As New TXTextControl.Web.Selection()
Console.WriteLine("Selection is ready.")