Paket | mx.core |
Klass | public class EdgeMetrics |
Arv | EdgeMetrics Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The following Flex properties have values that are EdgeMetrics objects:
- The
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. - The
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. - The
viewMetricsAndPadding
property of the mx.core.Container class includes the items listed for theviewMetrics
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.
Relaterade API-element
Egenskap | Definieras med | ||
---|---|---|---|
bottom : Number
The height, in pixels, of the bottom edge region. | EdgeMetrics | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
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 |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | EdgeMetrics | ||
Returns a copy of this EdgeMetrics object. | EdgeMetrics | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstant | Definieras med | ||
---|---|---|---|
EMPTY : EdgeMetrics [statisk]
An EdgeMetrics object with a value of zero for its
left, top, right,
and bottom properties. | EdgeMetrics |
bottom | egenskap |
public var bottom:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The height, in pixels, of the bottom edge region.
left | egenskap |
public var left:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The width, in pixels, of the left edge region.
right | egenskap |
public var right:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The width, in pixels, of the right edge region.
top | egenskap |
public var top:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The height, in pixels, of the top edge region.
EdgeMetrics | () | Konstruktor |
public function EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrarleft: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 | () | metod |
public function clone():EdgeMetrics
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns a copy of this EdgeMetrics object.
ReturnerarEdgeMetrics — A copy of this EdgeMetrics object.
|
EMPTY | Konstant |
public static const EMPTY:EdgeMetrics
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
An EdgeMetrics object with a value of zero for its
left
, top
, right
,
and bottom
properties.
Tue Jun 12 2018, 01:40 PM Z