Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The ElementRange class represents the range of objects selected within a text flow.
The beginning elements
(such as firstLeaf
) are always less than or equal to the end elements (in this case, lastLeaf
)
for each pair of values in an element range.
absoluteEnd:int
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The absolute text position of the FlowLeafElement object that contains the end of the range.
Implementation public function get absoluteEnd():int
public function set absoluteEnd(value:int):void
absoluteStart:int
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The absolute text position of the FlowLeafElement object that contains the start of the range.
Implementation public function get absoluteStart():int
public function set absoluteStart(value:int):void
characterFormat:ITextLayoutFormat
[read-only]
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The format attributes of the characters in the range.
If the range spans more than one FlowElement object, which means that more than one
character format may exist within the range, the format of the first FlowElement object is returned.
Implementation public function get characterFormat():ITextLayoutFormat
containerFormat:ITextLayoutFormat
[read-only]
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The format attributes of the container displaying the range.
If the range spans more than one container, the format of the first container is returned.
Implementation public function get containerFormat():ITextLayoutFormat
firstLeaf:FlowLeafElement
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The FlowLeafElement object that contains the start of the range.
Implementation public function get firstLeaf():FlowLeafElement
public function set firstLeaf(value:FlowLeafElement ):void
firstParagraph:ParagraphElement
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The ParagraphElement object that contains the start of the range.
Implementation public function get firstParagraph():ParagraphElement
public function set firstParagraph(value:ParagraphElement ):void
lastLeaf:FlowLeafElement
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The FlowLeafElement object that contains the end of the range.
Implementation public function get lastLeaf():FlowLeafElement
public function set lastLeaf(value:FlowLeafElement ):void
lastParagraph:ParagraphElement
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The ParagraphElement object that contains the end of the range.
Implementation public function get lastParagraph():ParagraphElement
public function set lastParagraph(value:ParagraphElement ):void
paragraphFormat:ITextLayoutFormat
[read-only]
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The format attributes of the paragraph containing the range.
If the range spans more than one paragraph, the format of the first paragraph is returned.
Implementation public function get paragraphFormat():ITextLayoutFormat
textFlow:TextFlow
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
The TextFlow object that contains the range.
Implementation public function get textFlow():TextFlow
public function set textFlow(value:TextFlow ):void
public static function createElementRange(textFlow:TextFlow , absoluteStart:int, absoluteEnd:int):ElementRange
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Creates an ElementRange object.
Parameters
textFlow :TextFlow
— the text flow
absoluteStart :int
— absolute text position of the first character in the text range
absoluteEnd :int
— one beyond the absolute text position of the last character in the text range
Returns public function getCommonCharacterFormat():TextLayoutFormat
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Gets the character format attributes that are common to all characters in the text range or current selection.
Format attributes that do not have the same value for all characters in the element range are set to
null
in the returned TextLayoutFormat instance.
Returns public function getCommonContainerFormat():TextLayoutFormat
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Gets the container format attributes that are common to all containers in the element range.
Format attributes that do not have the same value for all containers in the element range are set to
null
in the returned TextLayoutFormat instance.
Returns See also
public function getCommonParagraphFormat():TextLayoutFormat
Language Version : ActionScript 3.0
Runtime Versions : Flash Player 10, AIR 1.5
Gets the paragraph format attributes that are common to all paragraphs in the element range.
Format attributes that do not have the same value for all paragraphs in the element range are set to
null
in the returned TextLayoutFormat instance.
Returns See also
The Apache Software Foundation Wed Mar 25 2015, 07:57 PM +01:00