WebGrid.Pager 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回 HTML 標籤,這個標記用來提供實例的 WebGrid 指定分頁支援。
public System.Web.WebPages.HelperResult Pager (System.Web.Helpers.WebGridPagerModes mode = System.Web.Helpers.WebGridPagerModes.NextPrevious | System.Web.Helpers.WebGridPagerModes.Numeric, string firstText = default, string previousText = default, string nextText = default, string lastText = default, int numericLinksCount = 5);
member this.Pager : System.Web.Helpers.WebGridPagerModes * string * string * string * string * int -> System.Web.WebPages.HelperResult
Public Function Pager (Optional mode As WebGridPagerModes = System.Web.Helpers.WebGridPagerModes.NextPrevious | System.Web.Helpers.WebGridPagerModes.Numeric, Optional firstText As String = null, Optional previousText As String = null, Optional nextText As String = null, Optional lastText As String = null, Optional numericLinksCount As Integer = 5) As HelperResult
參數
- mode
- WebGridPagerModes
列舉值的位元組合,這個列舉值指定針對格線頁面間之移動所提供的方法。 預設值為 和 Numeric 旗標的 NextPrevious 位 OR。
- firstText
- String
瀏覽至格線之第一個頁面的 HTML 連結元素文字。
- previousText
- String
瀏覽至格線之上一個頁面的 HTML 連結元素文字。
- nextText
- String
瀏覽至格線之下一個頁面的 HTML 連結元素文字。
- lastText
- String
瀏覽至格線之最後一個頁面的 HTML 連結元素文字。
- numericLinksCount
- Int32
要顯示之數值頁面連結的數目。 預設值為 5。
傳回
提供格線分頁支援的 HTML 標記。