TXTextControl.Web.Selection Class

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.

Introduced: 22.0.

Syntax

[C#]
public class Selection
[Visual Basic]
Public Class Selection

Constructors

Constructor Description
Selection Overloaded. Creates a new instance of the Web.Selection class.

Properties

Property Description
Length Returns the number of characters selected.
Start Gets the starting point of selected text.

Methods

Method Description
Load Overloaded. Exchanges the currently selected text with text in a certain format.
Save Overloaded. Saves the selected text of a document with the specified format.

See Also