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 Selection
Public Class Selection

Introduced: X12.

Constructors

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

Methods

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

Properties

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