Packagemx.core
Classpublic class EdgeMetrics
InheritanceEdgeMetrics Inheritance Object

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The EdgeMetrics class specifies the thickness, in pixels, of the four edge regions around a visual component.

The following Flex properties have values that are EdgeMetrics objects:

These three properites all return a reference to the same EdgeMetrics object that the Container is using for its measurement and layout; they do not return a copy of this object. If you need a copy, call the clone() method.

See also

mx.core.Container
mx.skins.Border
mx.containers.Panel


Public Properties
 PropertyDefined By
  bottom : Number
The height, in pixels, of the bottom edge region.
EdgeMetrics
  left : Number
The width, in pixels, of the left edge region.
EdgeMetrics
  right : Number
The width, in pixels, of the right edge region.
EdgeMetrics
  top : Number
The height, in pixels, of the top edge region.
EdgeMetrics
Public Methods
 MethodDefined By
  
EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
Constructor.
EdgeMetrics
  
Returns a copy of this EdgeMetrics object.
EdgeMetrics
Public Constants
 ConstantDefined By
  EMPTY : EdgeMetrics
[static] An EdgeMetrics object with a value of zero for its left, top, right, and bottom properties.
EdgeMetrics
Property Detail
bottomproperty
public var bottom:Number

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The height, in pixels, of the bottom edge region.

leftproperty 
public var left:Number

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The width, in pixels, of the left edge region.

rightproperty 
public var right:Number

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The width, in pixels, of the right edge region.

topproperty 
public var top:Number

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

The height, in pixels, of the top edge region.

Constructor Detail
EdgeMetrics()Constructor
public function EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Constructor.

Parameters
left:Number (default = 0) — The width, in pixels, of the left edge region.
 
top:Number (default = 0) — The height, in pixels, of the top edge region.
 
right:Number (default = 0) — The width, in pixels, of the right edge region.
 
bottom:Number (default = 0) — The height, in pixels, of the bottom edge region.
Method Detail
clone()method
public function clone():EdgeMetrics

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

Returns a copy of this EdgeMetrics object.

Returns
EdgeMetrics — A copy of this EdgeMetrics object.
Constant Detail
EMPTYConstant
public static const EMPTY:EdgeMetrics

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

An EdgeMetrics object with a value of zero for its left, top, right, and bottom properties.