次の方法で共有


WebGrid.Pager メソッド

定義

インスタンスの指定されたページング サポートを提供するために使用される 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 マークアップ。

適用対象