You are here: Plugin API > Library Reference > IHost Interface > ISelection Interface
ISelection Interface
The ISelection interface provides functionality to edit the document selection.
Properties
- bool IsBold - Gets the value indicating whether the selection is bold.
- bool IsItalic - Gets the value indicating whether the selection is italic.
- bool IsUnderlined - Gets the value indicating whether the selection is underlined.
Methods
- bool Bold() - Bolds the selection.
- bool ChangeBackColor(Color) - Changes the background of the selection to the specified System.Drawing.Color.
- bool ChangeFontFamily(string) - Changes the font family of the selection to the specified value.
- bool ChangeFontSize(float) - Changes the font size of the selection to the specified value.
- bool ChangeForeColor(Color) - Changes the foreground color of the selection to the specified System.Drawing.Color.
- bool FormatStyle(string) - Changes the span style of the selection to the specified CSS class and/or ID.
- Color GetBackColor() - Returns the System.Drawing.Color of the background.
- string GetFontFamily() - Returns the font family of the selection.
- float GetFontSize() - Returns font size of the selection.
- Color GetForeColor() - Returns the System.Drawing.Color of the foreground.
- string GetStyle() - Returns the CSS class and/or ID of the selection.
- string GetText() - Returns the selected text.
- bool Italicize() - Italicizes the selection.
- bool RemoveFormatStyle(string) - Removes the specified span style/class of the selection. If the specified argument is null, all inline formatting is removed from the selection.
- bool ReplaceText(string) - Replaces the selected text with the specified text.
- void SetSelectionLength(int) - Sets the length of the selection to the specified value.
- bool Underline() - Underlines the selection.