#include <ContentSelection.h>
Represents a selection.
- Since
- 2.0
◆ ~ContentSelection()
| virtual myscript::iink::ContentSelection::~ContentSelection |
( |
| ) |
|
|
virtualdefault |
◆ getPart()
| virtual std::shared_ptr< ContentPart > myscript::iink::ContentSelection::getPart |
( |
| ) |
|
|
pure virtual |
Returns the part that contains this selection.
- Returns
- the content part.
- Exceptions
-
| std::runtime_error | when selection is invalid. |
◆ isValid()
| virtual bool myscript::iink::ContentSelection::isValid |
( |
| ) |
|
|
pure virtualnoexcept |
Tells whether this selection is still valid. A selection becomes invalid when all its content blocks are invalid. If this selection is a ContentBlock, it becomes invalid when it is removed or when the currently edited part changes (see IEditorListener#partChanged).
- Returns
true if this selection is valid.
The documentation for this class was generated from the following file: