Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The TextScrap class represents a fragment of a text flow.
A TextScrap is a holding place for all or part of a TextFlow. A range of text can be copied
from a TextFlow into a TextScrap, and pasted from the TextScrap into another TextFlow.
textFlow:TextFlow
[read-only]
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Gets the TextFlow that is currently in the TextScrap.
Implementation public function get textFlow():TextFlow
public function TextScrap(textFlow:TextFlow = null)
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Creates a TextScrap object.
Use the createTextScrap()
method to create a TextScrap object from
a range of text represented by a TextRange object.
Parameters textFlow :TextFlow
(default = null
)
— if set, the new TextScrap object contains the entire text flow.
Otherwise, the TextScrap object is empty.
public function clone():TextScrap
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Creates a duplicate copy of this TextScrap object.
Returns TextScrap
— TextScrap A copy of this TextScrap.
public static function createTextScrap(range:TextRange ):TextScrap
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Creates a TextScrap object from a range of text represented by a TextRange object.
Parameters
range :TextRange
— the TextRange object representing the range of text to copy.
Returns tlf_internal function isPlainText():Boolean
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Returns true if the text is plain text (not formatted)
Returns tlf_internal function setPlainText(plainText:Boolean):void
Marks the TextScrap's content as being either plain or formatted
Parameters
tlf_internal static const MERGE_TO_NEXT_ON_PASTE:String = mergeToNextOnPaste
The Apache Software Foundation Wed Mar 25 2015, 07:57 PM +01:00