Package | flashx.textLayout.elements |
Class | public final class ParagraphElement |
Inheritance | ParagraphElement ParagraphFormattedElement FlowGroupElement FlowElement Object |
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Default MXML PropertymxmlChildren
See also
Method | Defined By | ||
---|---|---|---|
Constructor - represents a paragraph in a text flow. | ParagraphElement | ||
Appends a child FlowElement object. | FlowGroupElement | ||
Adds a child FlowElement object at the specified index position. | FlowGroupElement | ||
clearStyle(styleProp:String):void Clears the style specified by the styleProp parameter from this FlowElement object. | FlowElement | ||
deepCopy(relativeStart:int = 0, relativeEnd:int = -1):FlowElement
Makes a deep copy of this FlowElement object, including any children, copying the content between the two specified
character positions and returning the copy as a FlowElement object. | FlowElement | ||
equalUserStyles(otherElement:FlowElement):Boolean Compare the userStyles of this with otherElement's userStyles. | FlowElement | ||
findChildIndexAtPosition(relativePosition:int):int
Given a relative text position, find the index of the first child FlowElement that contains the relative position. | FlowGroupElement | ||
findLeaf(relativePosition:int):FlowLeafElement
Given a relative text position, find the leaf element that contains the position. | FlowGroupElement | ||
findNextAtomBoundary(relativePosition:int):int
Scans ahead from the supplied position to find the location
in the text of the next atom and returns the index. | ParagraphElement | ||
findNextWordBoundary(relativePosition:int):int
Returns the index of the next word boundary in the text. | ParagraphElement | ||
findPreviousAtomBoundary(relativePosition:int):int
Scans backward from the supplied position to find the location
in the text of the previous atom and returns the index. | ParagraphElement | ||
findPreviousWordBoundary(relativePosition:int):int
Returns the index of the previous word boundary in the text. | ParagraphElement | ||
getAbsoluteStart():int
Returns the start location of the element in the text flow as an absolute index. | FlowElement | ||
getCharAtPosition(relativePosition:int):String
Returns the character at the specified position, relative to this FlowElement object. | FlowElement | ||
getCharCodeAtPosition(relativePosition:int):int Returns the character code at the specified position, relative to this FlowElement. | FlowElement | ||
getChildAt(index:int):FlowElement
Returns the FlowElement child at the specified index. | FlowGroupElement | ||
getChildIndex(child:FlowElement):int
Searches in children for the specified FlowElement object and returns its index position. | FlowGroupElement | ||
getElementRelativeStart(ancestorElement:FlowElement):int
Returns the start of this element relative to an ancestor element. | FlowElement | ||
Returns the first FlowLeafElement descendant of this group. | FlowGroupElement | ||
Returns the last FlowLeafElement descendent of this group. | FlowGroupElement | ||
Returns the paragraph that follows this one, or null if there are no more paragraphs. | ParagraphElement | ||
Returns the next FlowElement sibling in the text flow hierarchy. | FlowElement | ||
Returns the ParagraphElement object associated with this element. | FlowElement | ||
FlowElement | |||
Returns the paragraph that precedes this one, or null, if this paragraph is the first one
in the TextFlow. | ParagraphElement | ||
Returns the previous FlowElement sibling in the text flow hierarchy. | FlowElement | ||
getStyle(styleProp:String):* Returns the value of the style specified by the styleProp parameter, which specifies
the style name and can include any user style name. | FlowElement | ||
getText(relativeStart:int = 0, relativeEnd:int = -1, paragraphSeparator:String = ):String [override] | FlowGroupElement | ||
Climbs the text flow hierarchy to return the root TextFlow object for the element. | FlowElement | ||
initialized(document:Object, id:String):void Called for MXML objects after the implementing object has been created and all component properties specified on the MXML tag have been initialized. | FlowElement | ||
isInTable():Boolean | FlowElement | ||
Removes the specified child FlowElement object from the group. | FlowGroupElement | ||
removeChildAt(index:uint):FlowElement
Removes the child FlowElement object at the specified index position. | FlowGroupElement | ||
replaceChildren(beginChildIndex:int, endChildIndex:int, ... rest):void
Replaces child elements in the group with the specified new elements. | FlowGroupElement | ||
setBorderColor(color:uint):void | FlowElement | ||
setBorderWidth(width:Number):void | FlowElement | ||
setStyle(styleProp:String, newValue:*):void Sets the style specified by the styleProp parameter to the value specified by the
newValue parameter. | FlowElement | ||
shallowCopy(relativeStart:int = 0, relativeEnd:int = -1):FlowElement
Makes a copy of this FlowElement object, copying the content between two specified character positions. | FlowElement | ||
splitAtIndex(childIndex:int):FlowGroupElement
Splits this object at the position specified by the childIndex parameter. | FlowGroupElement | ||
splitAtPosition(relativePosition:int):FlowElement [override] | ParagraphElement |
interactiveChildrenCount | property |
interactiveChildrenCount:int
[read-only] tlf_internal function get interactiveChildrenCount():int
terminatorSpan | property |
terminatorSpan:SpanElement
[read-only] tlf_internal function get terminatorSpan():SpanElement
ParagraphElement | () | Constructor |
public function ParagraphElement()
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor - represents a paragraph in a text flow.
decInteractiveChildrenCount | () | method |
tlf_internal function decInteractiveChildrenCount():void
findNextAtomBoundary | () | method |
public function findNextAtomBoundary(relativePosition:int):int
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Scans ahead from the supplied position to find the location in the text of the next atom and returns the index. The term atom refers to both graphic elements and characters (including groups of combining characters), the indivisible entities that make up a text line.
Parameters
relativePosition:int — position in the text to start from, counting from 0
|
int — index in the text of the following atom
|
See also
findNextWordBoundary | () | method |
public function findNextWordBoundary(relativePosition:int):int
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns the index of the next word boundary in the text.
Scans ahead from the supplied position to find the next position in the text that starts or ends a word.
Parameters
relativePosition:int — position in the text to start from, counting from 0
|
int — index in the text of the next word boundary
|
findPreviousAtomBoundary | () | method |
public function findPreviousAtomBoundary(relativePosition:int):int
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Scans backward from the supplied position to find the location in the text of the previous atom and returns the index. The term atom refers to both graphic elements and characters (including groups of combining characters), the indivisible entities that make up a text line.
Parameters
relativePosition:int — position in the text to start from, counting from 0
|
int — index in the text of the previous cluster
|
See also
findPreviousWordBoundary | () | method |
public function findPreviousWordBoundary(relativePosition:int):int
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns the index of the previous word boundary in the text.
Scans backward from the supplied position to find the previous position in the text that starts or ends a word.
Parameters
relativePosition:int — position in the text to start from, counting from 0
|
int — index in the text of the previous word boundary
|
getNextParagraph | () | method |
public function getNextParagraph():ParagraphElement
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns the paragraph that follows this one, or null if there are no more paragraphs.
ReturnsParagraphElement — the next paragraph or null if there are no more paragraphs.
|
See also
getPreviousParagraph | () | method |
public function getPreviousParagraph():ParagraphElement
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Returns the paragraph that precedes this one, or null, if this paragraph is the first one in the TextFlow.
ReturnsParagraphElement |
See also
getTextBlockAbsoluteStart | () | method |
tlf_internal function getTextBlockAbsoluteStart(tb:TextBlock):int
Parameters
tb:TextBlock |
int |
getTextBlocks | () | method |
tlf_internal function getTextBlocks():Vector.<TextBlock>
ReturnsVector.<TextBlock> |
getTextBlockStart | () | method |
tlf_internal function getTextBlockStart(tb:TextBlock):int
Parameters
tb:TextBlock |
int |
hasInteractiveChildren | () | method |
tlf_internal function hasInteractiveChildren():Boolean
ReturnsBoolean |
incInteractiveChildrenCount | () | method |
tlf_internal function incInteractiveChildrenCount():void
removeEmptyTerminator | () | method |
tlf_internal function removeEmptyTerminator():void
splitAtPosition | () | method |
override public function splitAtPosition(relativePosition:int):FlowElement
Parameters
relativePosition:int |
FlowElement |