Skip to content

XUICEUndoableInsertLineBreak

Implements XUIUndoableAction

Description

Stores the data required to undo / redo the insertion of a line break within the XUICodeEditor.

Properties

Name Type Read-Only
mCaretPos Integer
mDescription String
mEditor XUICodeEditor
mID Integer

Methods

Name Parameters Returns
Constructor editor As XUICodeEditor, id As Integer, description As String, caretPos As Integer
Description String
ID Integer
ID Assigns value As Integer
Redo
Undo

Property Descriptions

mCaretPos As Integer

The caret position where the line break occurred.


mDescription As String

A description of this action.


mEditor As XUICodeEditor

The editor where the line break occurred.


mID As Integer

Internal cache of this action's ID.


Method Descriptions

Constructor(editor As XUICodeEditor, id As Integer, description As String, caretPos As Integer)

Default constructor.

  • editor is the XUICodeEditor 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 caret position that the new line insertion occurred at.

Description() As String

A description of this undoable 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 creation of a line break.

Part of the XUIUndoableAction interface.


Undo()

Undo the creation of a line break.

Part of the XUIUndoableAction interface.