Form.PageCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表單分頁後回傳表單的頁數。 這個 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
屬性值
表格頁碼後的頁數。
- 屬性
備註
控制項 Form 會 PageCount 揭露屬性與屬性 CurrentPage ,提供目前形式如何分頁的資訊。 此 PageCount 特性也有助於提供導覽至其他頁面的功能。 例如,在較豐富的裝置上渲染時,搜尋結果表單可能會包含裝置專屬的 UI 元素,讓使用者能依數字瀏覽結果頁面,而非透過連結導覽。