Packageflash.text
Classpublic class TextExtent
InheritanceTextExtent Inheritance Object

Runtime version: 

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
ascentproperty
public var ascent:Number
descentproperty 
public var descent:Number
heightproperty 
public var height:Number
textFieldHeightproperty 
public var textFieldHeight:Number
textFieldWidthproperty 
public var textFieldWidth:Number
widthproperty 
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