XUICEUndoableInsertText
Implements XUIUndoableAction
Description
Stores the data required to undo / redo the insertion of a text within
the XUICodeEditor
.
Properties
Name | Type | Read-Only |
---|---|---|
mCaretPos | Integer |
|
mDescription | String |
|
mEditor | XUICodeEditor |
|
mID | Integer |
|
mText | String |
Methods
Name | Parameters | Returns |
---|---|---|
Constructor | editor As XUICodeEditor , id As Integer , description As String , caretPos As Integer , s As String |
|
Description | String |
|
ID | Integer |
|
ID | Assigns value As Integer |
|
Redo | ||
Undo |
Property Descriptions
mCaretPos As Integer
The original caret position where the text was inserted at.
mDescription As String
A description of this action.
mEditor As XUICodeEditor
The editor where the text insertion occurred.
mID As Integer
Internal cache of this action's ID.
mText As String
The text inserted at mCaretPos
.
Method Descriptions
Constructor(editor As XUICodeEditor, id As Integer, description As String, caretPos As Integer, s As String)
Default constructor.
editor
is theXUICodeEditor
to perform this action on.id
is the unique ID for this action.description
is a human-radable description of this action for displaying in menubars and contextual menus.caretPos
is the original caret position where the text was inserted at.s
is the text inserted.
Description() As String
A description of this action.
Part of the XUIUndoableAction
interface.
ID() As Integer
This action's unique ID.
Part of the XUIUndoableAction
interface.
ID(Assigns value As Integer)
This action's unique ID.
Part of the XUIUndoableAction
interface.
Redo()
Redo the insertion of the text in the editor.
Part of the XUIUndoableAction
interface.
Undo()
Undo the insertion of the text that was inserted at mCaretPos
.
Part of the XUIUndoableAction
interface.