Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.text 
TextExtent 
Packageflash.text
Classpublic class TextExtent
InheritanceTextExtent Inheritance Object

Runtime Versions: AIR 1.0 Flash Player 9

The TextExtent class contains information about the extents of some text in a text field. Objects of this class are returned by the TextFormat.getTextExtent method.



Public Properties
 PropertyDefined By
  ascent : Number
TextExtent
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  descent : Number
TextExtent
  height : Number
TextExtent
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  textFieldHeight : Number
TextExtent
  textFieldWidth : Number
TextExtent
  width : Number
TextExtent
Public Methods
 MethodDefined By
  
TextExtent(width:Number, height:Number, textFieldWidth:Number, textFieldHeight:Number, ascent:Number, descent:Number)
TextExtent
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

ascent

property
public var ascent:Number

descent

property 
public var descent:Number

height

property 
public var height:Number

textFieldHeight

property 
public var textFieldHeight:Number

textFieldWidth

property 
public var textFieldWidth:Number

width

property 
public var width:Number

Constructor Detail

TextExtent

()Constructor
public function TextExtent(width:Number, height:Number, textFieldWidth:Number, textFieldHeight:Number, ascent:Number, descent:Number)



Parameters
width:Number
 
height:Number
 
textFieldWidth:Number
 
textFieldHeight:Number
 
ascent:Number
 
descent:Number