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 |
---|---|
change |
Changes the capitalization of all selected characters depending on the 'capitalization |
change |
Changes the writing direction of all selected paragraphs. |
decrease |
Decreases the left indent of all paragraphs contained in the current text selection. |
get |
Gets values specifying automatic sub- or superscripted text. |
get |
Gets the baseline alignment, in twips, of the selected text. |
get |
Gets the bold attribute of the selected text. |
get |
Gets values specifying wheather lowercase letters are displayed with capital letters. |
get |
Gets or sets the style's character scaling, in percent of the average character width. |
get |
Gets the style's character spacing value, in twips. |
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. |
grow |
Increases the font size of each font contained in the current text selection. |
increase |
Increases the left indent of all paragraphs contained in the current text selection. |
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. |
remove |
Resets all character based formatting attributes of the selected text to its default values. |
remove |
Removes all character based styles of the selected text so that all attributes are reset to the attributes of the paragraph style. |
save | Saves the current selection in a certain format and sends the result back asynchronously by calling a given callback function. |
set |
Sets values specifying automatic sub- or superscripted text. |
set |
Sets the baseline alignment, in twips, of the selected text. |
set |
Sets the bold attribute of the selected text. |
set |
Obsolete. |
set |
Sets values specifying wheather lowercase letters are displayed with capital letters. |
set |
Sets or sets the style's character scaling, in percent of the average character width. |
set |
Sets the style's character spacing value, in twips. |
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. |
shrink |
Decreases the font size of each font contained in the current text selection. |
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: