共用方式為


Form.PageCount 屬性

定義

表單分頁後回傳表單的頁數。 這個 API 已經過時了。 如需如何開發 ASP.NET 行動應用程式的詳細資訊,請參閱 Mobile Apps & Sites with ASP.NET

public:
 property int PageCount { int get(); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public int PageCount { get; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(false)>]
member this.PageCount : int
Public ReadOnly Property PageCount As Integer

屬性值

表格頁碼後的頁數。

屬性

備註

控制項 FormPageCount 揭露屬性與屬性 CurrentPage ,提供目前形式如何分頁的資訊。 此 PageCount 特性也有助於提供導覽至其他頁面的功能。 例如,在較豐富的裝置上渲染時,搜尋結果表單可能會包含裝置專屬的 UI 元素,讓使用者能依數字瀏覽結果頁面,而非透過連結導覽。

備註

此數值在事件發生後 Paginated 方可取得。 要取得 PageCount 房產,你可以處理 Paginated 該表格的事件。

適用於

另請參閱