Selection Class
- Namespace
TXTextControl.Web
- Package
TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb
- Assembly
TXTextControl.Web. DocumentEditor. dll
- Install
dotnet add package TXTextControl.Web
Description
The Web.Selection class describes and handles the position and length of a text selection. It also provides the possibility to replace the currently selected text with text in a certain document format.
Syntax
public class SelectionPublic Class SelectionExamples
The following example creates a Selection object and prepares it for a document workflow.
TXTextControl.Web.Selection selection = new();
Console.WriteLine("Selection is ready for the document workflow.");Dim selection As New TXTextControl.Web.Selection()
Console.WriteLine("Selection is ready for the document workflow.")Members
Constructors
| Constructor | Description |
|---|---|
| Selection | Creates a new instance of the Web.Selection class. |
Properties
| Property | Description |
|---|---|
| Length | Returns the number of characters selected. If this property is zero, no text is selected and the Start property determines the current text input position. |
| Start | Gets the starting point of selected text. The first possible position is 0. |