MyScript Interactive Ink SDK 4.5.0
Public Member Functions | List of all members
myscript::iink::ContentSelection Class Referenceabstract

#include <ContentSelection.h>

Inheritance diagram for myscript::iink::ContentSelection:
myscript::iink::ContentBlock

Public Member Functions

virtual ~ContentSelection ()=default
 
virtual std::shared_ptr< ContentPart > getPart ()=0
 
virtual bool isValid () noexcept=0
 

Detailed Description

Represents a selection.

Since
2.0

Constructor & Destructor Documentation

◆ ~ContentSelection()

virtual myscript::iink::ContentSelection::~ContentSelection ( )
virtualdefault

Member Function Documentation

◆ 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_errorwhen 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: