次の方法で共有


Form.PagerStyle プロパティ

定義

フォームの改ページ位置自動修正 UI のレンダリングに使用するスタイルを取得または設定します。 既定値は空の文字列 ("") です。 この API は、互換性のために残されています。 ASP.NET モバイル アプリケーションを開発する方法については、「ASP.NET を使用した Mobile Apps & サイト」を参照してください。

public:
 property System::Web::UI::MobileControls::PagerStyle ^ PagerStyle { System::Web::UI::MobileControls::PagerStyle ^ get(); };
public System.Web.UI.MobileControls.PagerStyle PagerStyle { get; }
member this.PagerStyle : System.Web.UI.MobileControls.PagerStyle
Public ReadOnly Property PagerStyle As PagerStyle

プロパティ値

フォームの改ページ位置自動修正 UI のレンダリングに使用するスタイル。

次のコード例では、 プロパティの使用方法 PagerStyle を示します。 このコード例は、 プロパティの大きな例に ControlToPaginate 由来します。

void Page_Load(object sender, EventArgs e)
{
    // Set the pager text properties
    if (!IsPostBack)
        Form1.PagerStyle.NextPageText = "Go Next >";
    else
    {
        // For postback, set different text
        Form1.PagerStyle.NextPageText = "Go More >";
        Form1.PagerStyle.PreviousPageText = "< Go Prev";
    }
}
Private Sub Page_Load(ByVal sender As Object, _
    ByVal e As EventArgs)
    
    ' Set the pager text properties
    If Not IsPostBack Then
        Form1.PagerStyle.NextPageText = "Go Next >"
    Else
        ' For postback, set different text
        Form1.PagerStyle.NextPageText = "Go More >"
        Form1.PagerStyle.PreviousPageText = "< Go Prev"
    End If
End Sub

注釈

このプロパティがプログラムで設定されている場合、要求ごとに永続化されません。 プロパティが宣言によって設定されている場合、プロパティは要求ごとに永続化されます。

適用対象

こちらもご覧ください