Skip to content

XUICEUndoableDelete

Implements XUIUndoableAction

Description

Stores the data required to undo / redo a deletion within the XUICodeEditor.

Properties

Name Type Read-Only
mDeletedText String
mDescription String
mEditor XUICodeEditor
mID Integer
mSelection XUITextSelection

Methods

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

Property Descriptions

mDeletedText As String

The text that was deleted from the editor by the original deletion action.


mDescription As String

A description of this action.


mEditor As XUICodeEditor

The editor where the deletion occurred.


mID As Integer

Internal cache of this action's ID.


mSelection As XUITextSelection

The original selection containing the text that was deleted.


Method Descriptions

Constructor(editor As XUICodeEditor, id As Integer, description As String, deletedText As String, selection As XUITextSelection)

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.
  • deletedText is the text that was just deleted in the code editor.
  • selection is selection within the code editor at the time of the deletion.

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 deletion of a selection in the editor canvas.

Part of the XUIUndoableAction interface.


Undo()

Undo the deletion of a selection in the editor canvas.

Part of the XUIUndoableAction interface.