套件 | spark.components.gridClasses |
類別 | public final class GridSelectionMode |
繼承 | GridSelectionMode Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
selectionMode
property of the Spark DataGrid and Grid controls.
Use the constants in ActionsScript, as the following example shows:
myDG.selectionMode = GridSelectionMode.MULTIPLE_CELLS;
In MXML, use the String value of the constants, as the following example shows:
<s:DataGrid id="myGrid" width="350" height="150" selectionMode="multipleCells"> ... </s:DataGrid>
相關 API 元素
公用方法
方法 | 定義自 | ||
---|---|---|---|
Constructor. | GridSelectionMode | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
公用常數
常數 | 定義自 | ||
---|---|---|---|
MULTIPLE_CELLS : String = "multipleCells" [靜態]
Specifies that one or more cells can be selected. | GridSelectionMode | ||
MULTIPLE_ROWS : String = "multipleRows" [靜態]
Specifies that one or more rows can be selected. | GridSelectionMode | ||
NONE : String = "none" [靜態]
Specifies that no selection is allowed. | GridSelectionMode | ||
SINGLE_CELL : String = "singleCell" [靜態]
Specifies that one cell can be selected. | GridSelectionMode | ||
SINGLE_ROW : String = "singleRow" [靜態]
Specifies that one row can be selected. | GridSelectionMode |
建構函式詳細資料
GridSelectionMode | () | 建構函式 |
public function GridSelectionMode()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Constructor.
常數詳細資訊
MULTIPLE_CELLS | 常數 |
public static const MULTIPLE_CELLS:String = "multipleCells"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Specifies that one or more cells can be selected.
MULTIPLE_ROWS | 常數 |
public static const MULTIPLE_ROWS:String = "multipleRows"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Specifies that one or more rows can be selected.
NONE | 常數 |
public static const NONE:String = "none"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Specifies that no selection is allowed.
SINGLE_CELL | 常數 |
public static const SINGLE_CELL:String = "singleCell"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Specifies that one cell can be selected.
SINGLE_ROW | 常數 |
public static const SINGLE_ROW:String = "singleRow"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.5 |
執行階段版本: | Flash Player 10, AIR 2.5 |
Specifies that one row can be selected.
Tue Jun 12 2018, 03:47 PM Z