Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
UndoOperation

Package | flashx.textLayout.operations
Class | public class UndoOperation
Inheritance | UndoOperation FlowOperation Object

Language Version : | ActionScript 3.0

Runtime Versions : | Flash Player 10, AIR 1.5

The UndoOperation class encapsulates an undo operation.

See also

flashx.textLayout.edit.EditManager
flashx.textLayout.events.FlowOperationEvent

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | beginGeneration : uint [read-only] The text flow generation before the operation. | FlowOperation
|  | endGeneration : uint [read-only] The text flow generation after the operation. | FlowOperation
|  | operation : FlowOperation The operation to undo. | UndoOperation
|  | textFlow : TextFlow The TextFlow object to which this operation is applied. | FlowOperation
|  | userData : * Arbitrary data associated with an element. | FlowOperation

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | UndoOperation(op:FlowOperation) Creates an UndoOperation object. | UndoOperation
|  | canUndo():Boolean Test if this operation be placed on the undo stack. | FlowOperation
|  | doOperation():Boolean Executes the operation. | FlowOperation
|  | redo():SelectionState Re-executes the operation. | FlowOperation
|  | undo():SelectionState Reverses the operation. | FlowOperation

Property Detail

operation | property

`operation:FlowOperation`

Language Version : | ActionScript 3.0

Runtime Versions : | Flash Player 10, AIR 1.5

The operation to undo.

Implementation
`public function get operation():FlowOperation`
`public function set operation(value:FlowOperation):void`
Constructor Detail

UndoOperation | () | Constructor

`public function UndoOperation(op:FlowOperation)`

Language Version : | ActionScript 3.0

Runtime Versions : | Flash Player 10, AIR 1.5

Creates an UndoOperation object.

Parameters

| `op:FlowOperation` — The operation to undo.

Wed Nov 15 2017, 09:50 AM +01:00