Describes and handles the attributes of a text selection. Each of the properties of this class returns the property's default value if the selection does not contain a common value.
Selection
Introduced: X14.
Enumeration | Description |
---|---|
Attribute | Determines a certain selection attribute. |
Method | Description |
---|---|
get |
Gets the baseline alignment, in twips, of the selected text. |
get |
Gets the bold attribute of the selected text. |
get |
Gets the culture as a languagecode2-country / regioncode2 string value. |
get |
Gets the font name of the selected text. |
get |
Gets the font's size, in points, of the selected text. |
get |
Gets the color used to display the selected text. |
get |
Gets the formatting style of the selected text. |
get |
Gets the italic attribute of the selected text. |
get |
Gets the number of selected characters. |
get |
Gets the starting point of selected text. |
get |
Gets the strikeout attribute of the selected text. |
get |
Gets the currently selected text. |
get |
Gets the background color of the selected text. |
get |
Gets the underlining styles of the selected text. |
is |
Informs about whether an attribute from the List |
is |
Informs about whether an attribute from the Page |
is |
Informs about whether an attribute from the Page |
is |
Informs about whether an attribute from the Page |
is |
Informs about whether an attribute from the Paragraph |
is |
Informs about whether an attribute from the Section |
is |
Informs about whether an attribute from the Selection. |
load | Loads text in a certain format into the current selection. |
save | Saves the current selection in a certain format and sends the result back asynchronously by calling a given callback function. |
set |
Sets the baseline alignment, in twips, of the selected text. |
set |
Sets the bold attribute of the selected text. |
set |
Obsolete. |
set |
Sets the culture as a languagecode2-country / regioncode2 string value. |
set |
Sets the font's name of the selected text. |
set |
Sets the font's size, in points, of the selected text. |
set |
Sets the selection's foreground color. |
set |
Sets the formatting style of the selected text. |
set |
Sets the italic attribute of the selected text. |
set |
Sets the number of selected characters. |
set |
Sets the starting point of selected text. |
set |
Sets the strikeout attribute of the selected text. |
set |
Sets the currently selected text. |
set |
Sets the selection's background color. |
set |
Sets the underlining styles for the selected text. |
Property | Description |
---|---|
list |
Gets a bulleted or numbered list and / or its formatting attributes for the selected text. |
paragraph |
Gets the formatting attributes of the selected paragraphs. |
section |
Gets page settings such as margins, size and orientation for the selected text. |
Learn more about the Javascript: Selection Object in the Text Control Blog: