適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
com.adobe.guides.spark.layouts.components 

AlignmentArea  - AS3 ADEP Guides

套件com.adobe.guides.spark.layouts.components
類別public class AlignmentArea
繼承AlignmentArea Inheritance Object

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Document Services - Guides 10
執行階段版本: AIR 1.0, Flash Player 10.2

This class aligns columns inside a Spark Group honouring the "keepWithPrevious" settings of the passed in items.



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
公用方法
 方法定義自
  
[靜態] Aligns each row in a multi-column layout by making each item in each row the same height
AlignmentArea
 Inherited
指出物件是否有已定義的指定屬性。
Object
  
init(topGroup:Group, itemFactories:Array, tabIndex:int = -1, tabOffset:int = 0):int
Create the groups to represent an alignment area.
AlignmentArea
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
  
[靜態] Line up the respective child of each container by making them the same height of the largest child.
AlignmentArea
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
會傳回指定之物件的字串形式。
Object
 Inherited
會傳回指定之物件的基本值。
Object
保護方法
 方法定義自
  
addItems(oItems:Array, oContainers:Array, nStartTabIndex:int = -1, nTabIncrement:int = 0, oAreaContainer:Group = null):int
Add items to an alignment area obeying "keepWithPrevious" settings.
AlignmentArea
  
columnCount(itemFactories:Array):int
Determine the maximum column count based on the keepWithPrevious setting of the item factories
AlignmentArea
方法詳細資訊

addItems

()方法
protected function addItems(oItems:Array, oContainers:Array, nStartTabIndex:int = -1, nTabIncrement:int = 0, oAreaContainer:Group = null):int

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Document Services - Guides 10
執行階段版本: AIR 1.0, Flash Player 10.2

Add items to an alignment area obeying "keepWithPrevious" settings. The routine will pad out the columns with empty text objects to the maximumn columns.

參數

oItems:Array — - array of item factories.
 
oContainers:Array — - the containers where the items are added.
 
nStartTabIndex:int (default = -1) — - starting tab index for the added items. If -1 then tabIndex is not set on the items.
 
nTabIncrement:int (default = 0) — - the amount to offset the tabIndex for each item added.
 
oAreaContainer:Group (default = null) — - this container is made visible if any items are added. It is expected that this is an ancestor of the containers in the oContainers array.

傳回值
int — the next tab index.

alignHorizontalGroupContent

()方法 
public static function alignHorizontalGroupContent(outerGroup:Group):void

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Document Services - Guides 10
執行階段版本: AIR 1.0, Flash Player 10.2

Aligns each row in a multi-column layout by making each item in each row the same height

參數

outerGroup:Group — - the container group of mulitple HGroup.

columnCount

()方法 
protected function columnCount(itemFactories:Array):int

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Document Services - Guides 10
執行階段版本: AIR 1.0, Flash Player 10.2

Determine the maximum column count based on the keepWithPrevious setting of the item factories

參數

itemFactories:Array — array of item factories for an alignment area.

傳回值
int — the number of columns in this alignment area.

init

()方法 
public function init(topGroup:Group, itemFactories:Array, tabIndex:int = -1, tabOffset:int = 0):int

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Document Services - Guides 10
執行階段版本: AIR 1.0, Flash Player 10.2

Create the groups to represent an alignment area. If the items are a simple column returns simply a VGroup. If the items are in an alignment area with multiple columns, return a HGroup with VGroup children to represent each column.

參數

topGroup:Group — passed in group to represent an alignment area.
 
itemFactories:Array — the item factories to be added to the alignment area.
 
tabIndex:int (default = -1) — the starting tab index for the items being added to the group.
 
tabOffset:int (default = 0) — the offset between the tab indices for each item added.

傳回值
int — the next tab index.

makeSameHeight

()方法 
public static function makeSameHeight(oContainers:Array):void

語言版本: ActionScript 3.0
產品版本: Adobe Digital Enterprise Platform Document Services - Guides 10
執行階段版本: AIR 1.0, Flash Player 10.2

Line up the respective child of each container by making them the same height of the largest child. For example the child at index 3 of each container is made to be the height of the largest child at index 3 of each of the containers. This routine also uses the percentage width of the first child to align all items in a particual column to use the same percentage width.

參數

oContainers:Array — - array of containers to be made the same height.





[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。