Property | Defined by | ||
---|---|---|---|
isVisible : Boolean [read-only]
Indicates whether or not the character range has visible characters.
| StringBoundaries | ||
rectangles : Array [read-only]
Returns the bounding rectangles of the current character range.
| StringBoundaries |
Method | Defined by | ||
---|---|---|---|
StringBoundaries(textField:TextField, startIndex:int, endIndex:int, xOffset:Number = 0, yOffset:Number = 0)
Finds the bounding rectangle of a character range within a TextField object.
| StringBoundaries |
Constant | Defined by | ||
---|---|---|---|
X_CORRECTION : Number = 1
TextField.getCharBoundaries seems to be consistently innaccurate by this amount in the x-axis.
| StringBoundaries | ||
Y_CORRECTION : Number = 2
TextField.getCharBoundaries seems to be consistently innaccurate by this amount in the y-axis.
| StringBoundaries |
isVisible | property |
isVisible:Boolean
[read-only]Indicates whether or not the character range has visible characters.
Implementation public function get isVisible():Boolean
rectangles | property |
rectangles:Array
[read-only]Returns the bounding rectangles of the current character range.
Implementation public function get rectangles():Array
StringBoundaries | () | constructor |
public function StringBoundaries(textField:TextField, startIndex:int, endIndex:int, xOffset:Number = 0, yOffset:Number = 0)
Finds the bounding rectangle of a character range within a TextField object. If the character range spans multiple lines, bounding rectangles are calculated for each line.
ParameterstextField:TextField — The TextField the string is in.
|
|
startIndex:int — The start index of the character range.
|
|
endIndex:int — The end index of the character range.
|
|
xOffset:Number (default = 0 ) — The horizontal offset to apply to the boundary rectangle.
|
|
yOffset:Number (default = 0 ) — The vertical offset to apply to the bounding rectangle.
|
X_CORRECTION | constant |
public const X_CORRECTION:Number = 1
TextField.getCharBoundaries seems to be consistently innaccurate by this amount in the x-axis.
Y_CORRECTION | constant |
public const Y_CORRECTION:Number = 2
TextField.getCharBoundaries seems to be consistently innaccurate by this amount in the y-axis.