Package | flashx.textLayout.operations |
Class | public class PasteOperation |
Inheritance | PasteOperation ![]() ![]() ![]() |
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The specified range is replaced by the new content.
Note: The edit manager is responsible for copying the contents of the clipboard.
See also
Property | Defined By | ||
---|---|---|---|
![]() | absoluteEnd : int
The absolute end point of the range of text to which this operation is applied. | FlowTextOperation | |
![]() | absoluteStart : int
The absolute start point of the range of text to which this operation is applied. | FlowTextOperation | |
![]() | beginGeneration : uint [read-only]
The text flow generation before the operation. | FlowOperation | |
![]() | endGeneration : uint [read-only]
The text flow generation after the operation. | FlowOperation | |
![]() | originalSelectionState : SelectionState
The selection state at the start of the operation. | FlowTextOperation | |
![]() | textFlow : TextFlow
The TextFlow object to which this operation is applied. | FlowOperation | |
textScrap : TextScrap
textScrap the text being pasted
| PasteOperation | ||
![]() | userData : *
Arbitrary data associated with an element. | FlowOperation |
Method | Defined By | ||
---|---|---|---|
Creates a PasteOperation object. | PasteOperation | ||
![]() | canUndo():Boolean
Test if this operation be placed on the undo stack. | FlowOperation | |
![]() | doOperation():Boolean
Executes the operation. | FlowOperation | |
![]() | [override]
Re-executes the operation. | FlowTextOperation | |
![]() |
Reverses the operation. | FlowOperation |
textScrap | property |
textScrap:TextScrap
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
textScrap the text being pasted
public function get textScrap():TextScrap
public function set textScrap(value:TextScrap):void
PasteOperation | () | Constructor |
public function PasteOperation(operationState:SelectionState, textScrap:TextScrap)
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Creates a PasteOperation object.
ParametersoperationState:SelectionState — Describes the insertion point or a range of text
to replace.
| |
textScrap:TextScrap — The content to paste into the text flow.
|