[IoId("00000000-b880-4a08-910c-87eb418f6af0")]
[UiName("Create Object")]
public sealed class CreateObjectAction : Action
Undo action for object creation. The object state is lazily created when this action is undone for the first time.
Constructors
CreateObjectAction
#CreateObjectAction
#Createa new creation action based on an existing object.
Parameters:
| obj (IDocumentObject) |
Properties
Location
#public PointF Location { get; }
State
public State State { get; }
Gets the state this action is in.
Methods
Extends
Override this method to indicate this action extends another action, and can thus be dropped from a sequence of actions.
Parameters:
| action (Action) |
PerformRedo
Redo this action. This is only allowed if the Action.State equals State.Redo.
Parameters:
| doc (Document) |
PerformUndo
Undo this action. This is only allowed if the Action.State equals State.Undo.
Parameters:
| doc (Document) |
PrepareRedo
Run the preperatory work for a redo operation. The Action.PerformRedo(Document) method ought never be called without a preceding call to Action.PrepareRedo(Document), although note that a call to Action.PrepareRedo(Document) is not necessarily followed by a call to Action.PerformRedo(Document).
Parameters:
| doc (Document) |
PrepareRedoInternal
Parameters:
| doc (Document) |
PrepareUndo
Run the preperatory work for an undo operation. The Action.PerformUndo(Document) method ought never be called without a preceding call to Action.PrepareUndo(Document), although note that a call to Action.PrepareUndo(Document) is not necessarily followed by a call to Action.PerformUndo(Document).
Parameters:
| doc (Document) |
PrepareUndoInternal
Parameters:
| doc (Document) |