Package | mx.core |
Class | public class EdgeMetrics |
The following Flex properties have values that are EdgeMetrics objects:
borderMetrics
property of the mx.core.Container and
mx.skins.Border classes includes only the border in the calculations
of the property values of the EdgeMetrics object.viewMetrics
property of the mx.core.Container
class, and of subclasses of the Container class, includes possible
scrollbars and non-content elements -- such as a Panel container's
header area and the area for a ControlBar component -- in the calculations
of the property values of the EdgeMetrics object.viewMetricsAndPadding
property of the
mx.core.Container class includes the items listed for the
viewMetrics
property, plus the any areas defined by
the margins of the container in the calculations of the
property values of the EdgeMetrics object.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
Property | Defined 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 |
Method | Defined by | ||
---|---|---|---|
EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
Constructor.
| EdgeMetrics | ||
Returns a copy of this EdgeMetrics object.
| EdgeMetrics |
Constant | Defined by | ||
---|---|---|---|
EMPTY : EdgeMetrics
[static]
An EdgeMetrics object with a value of zero for its
left , top , right ,
and bottom properties. | EdgeMetrics |
bottom | property |
public var bottom:Number
The height, in pixels, of the bottom edge region.
left | property |
public var left:Number
The width, in pixels, of the left edge region.
right | property |
public var right:Number
The width, in pixels, of the right edge region.
top | property |
public var top:Number
The height, in pixels, of the top edge region.
EdgeMetrics | () | constructor |
public function EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
Constructor.
Parametersleft: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.
|
clone | () | method |
EMPTY | constant |
public static const EMPTY:EdgeMetrics
An EdgeMetrics object with a value of zero for its
left
, top
, right
,
and bottom
properties.