Selection Class |
|
The Selection class 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. In this case
the IsCommonValueSelected method returns false. |
|
| Syntax: |
|
[C#]
public class Selection
[Visual Basic]
Public Class Selection
|
Constructors |
| Constructor |
|
Description |
|
| |
| Selection |
|
Initializes a new instance of the Selection class.
|
Properties |
| Property |
|
Description |
|
| |
| Baseline |
|
Gets or sets the baseline alignment, in twips, of the selected text.
|
| Bold |
|
Gets or sets the bold attribute of the selected text.
|
| FontName |
|
Gets or sets the font of the selected text.
|
| FontSize |
|
Gets or sets the font's size, in point, of the selected text.
|
| ForeColor |
|
Returns or sets the color used to display the selected text.
|
| FormattingStyle |
|
Gets or sets the formatting style of the selected text.
|
| Italic |
|
Gets or sets the italic attribute of the selected text.
|
| Length |
|
Returns or sets the number of characters selected.
|
| ListFormat |
|
Gets or sets a bulleted or numbered list and/or its formatting attributes for the selected text.
|
| ParagraphFormat |
|
Gets or sets the formatting attributes of the selected paragraphs.
|
| SectionFormat |
|
Gets or sets page settings such as margins, size and orientation for the selected text.
|
| Start |
|
Gets or sets the starting point of selected text.
|
| Strikeout |
|
Gets or sets the strikeout attribute of the selected text.
|
| Text |
|
Gets or sets a string containing the currently selected text.
|
| TextBackColor |
|
Gets or sets the background color for selected text.
|
| Underline |
|
Gets or sets underlining styles for the selected text.
|
Methods |
| Method |
|
Description |
|
| |
| IsCommonValueSelected |
|
Overloaded. Informs about whether a certain attribute has the same value for the complete selection.
|
| Load |
|
Overloaded. Exchanges the selected text with text in a certain format.
|
| Save |
|
Overloaded. Saves the selected text in a file, a byte array or as a string with a specified format.
|
Enumerations |
| Enumeration |
|
Description |
|
| |
| Attribute |
|
Determines a certain attribute.
|
|
| See also: |
|
Text Selections and Character Input, Graphical Overview. |