套件 | mx.core |
類別 | public class EdgeMetrics |
繼承 | EdgeMetrics Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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.
相關 API 元素
屬性 | 定義自 | ||
---|---|---|---|
bottom : Number
The height, in pixels, of the bottom edge region. | EdgeMetrics | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | 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 |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | EdgeMetrics | ||
Returns a copy of this EdgeMetrics object. | EdgeMetrics | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
常數 | 定義自 | ||
---|---|---|---|
EMPTY : EdgeMetrics [靜態]
An EdgeMetrics object with a value of zero for its
left, top, right,
and bottom properties. | EdgeMetrics |
bottom | 屬性 |
public var bottom:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The height, in pixels, of the bottom edge region.
left | 屬性 |
public var left:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The width, in pixels, of the left edge region.
right | 屬性 |
public var right:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The width, in pixels, of the right edge region.
top | 屬性 |
public var top:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The height, in pixels, of the top edge region.
EdgeMetrics | () | 建構函式 |
public function EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數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.
|
clone | () | 方法 |
public function clone():EdgeMetrics
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns a copy of this EdgeMetrics object.
傳回值EdgeMetrics — A copy of this EdgeMetrics object.
|
EMPTY | 常數 |
public static const EMPTY:EdgeMetrics
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | 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, 03:47 PM Z