套件 | mx.collections |
類別 | public class CursorBookmark |
繼承 | CursorBookmark Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
ICollectionView
. Bookmarks are used to return a cursor to
an absolute position within the ICollectionView
.
相關 API 元素
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
CURRENT : CursorBookmark [靜態] [唯讀]
A bookmark representing the current item for the IViewCursor in
an ICollectionView. | CursorBookmark | ||
FIRST : CursorBookmark [靜態] [唯讀]
A bookmark for the first item in an ICollectionView. | CursorBookmark | ||
LAST : CursorBookmark [靜態] [唯讀]
A bookmark for the last item in an ICollectionView. | CursorBookmark | ||
value : Object [唯讀]
The underlying marker representation of the bookmark. | CursorBookmark |
公用方法
方法 | 定義自 | ||
---|---|---|---|
CursorBookmark(value:Object)
Creates a new instance of a bookmark with the specified value. | CursorBookmark | ||
Gets the approximate index of the item represented by this bookmark
in its view. | CursorBookmark | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
屬性詳細資訊
CURRENT | 屬性 |
CURRENT:CursorBookmark
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A bookmark representing the current item for the IViewCursor
in
an ICollectionView
.
實作
public static function get CURRENT():CursorBookmark
FIRST | 屬性 |
FIRST:CursorBookmark
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A bookmark for the first item in an ICollectionView
.
實作
public static function get FIRST():CursorBookmark
LAST | 屬性 |
LAST:CursorBookmark
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A bookmark for the last item in an ICollectionView
.
If the view has no items, the cursor is at this bookmark.
實作
public static function get LAST():CursorBookmark
value | 屬性 |
建構函式詳細資料
CursorBookmark | () | 建構函式 |
方法詳細資訊
getViewIndex | () | 方法 |
public function getViewIndex():int
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Gets the approximate index of the item represented by this bookmark in its view. If the item has been paged out, this method could throw an ItemPendingError.
傳回值int — The index of the item. If the item is not in the current view, this method returns
-1. This method also returns -1 if index-based location is not possible.
|
Tue Jun 12 2018, 03:47 PM Z