Skip to content

Mark#

Keeps track of a position in a text document. More...

import Script

Properties#

Name
TextDocument document
bool isValid
bool line

Methods#

Name
restore()

Detailed Description#

The Mark object helps you track a logical position in a file. Its line and column properties will change as text are deleted or inserted before the mark.

A mark is always created by a TextDocument.

Property Documentation#

TextDocument document#

This read-only property returns the document the mark is coming from.

bool isValid#

This read-only property indicates if the mark is valid.

bool line#

Those read-only properties holds the position of the mark. They will be updated if text is deleted or inserted.

Method Documentation#

restore()#

Returns the cursor position in the editor to the position saved by this object.