FormViewDesigner.SampleRowCount プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FormViewDesigner.SampleRowCount プロパティの意味・解説 

FormViewDesigner.SampleRowCount プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

関連付けられたコントロールの、表示するサンプル行の数を指定します

名前空間: System.Web.UI.Design.WebControls
アセンブリ: System.Design (system.design.dll 内)
構文構文

Protected Overrides ReadOnly
 Property SampleRowCount As Integer
Dim value As Integer

value = Me.SampleRowCount
protected override int SampleRowCount { get;
 }
/** @property */
protected int get_SampleRowCount ()

プロパティ
サンプル行の数。

解説解説

SampleRowCount は常に 2返します。これにより、PagerSettings が数値モード場合は、デザイン時に FormView コントロールページ行に 2 つページ リンクが表示されます。

使用例使用例

FormViewDesigner クラスから継承したクラスSampleRowCount プロパティオーバーライドして、デザイン時に FormView コントロールページ行に表示されるページ リンクの数を変更する方法次のコード例示します。この例では 4 つのページリンクが表示されます。

' Determines the number of design-time links in the pager row.
Protected Overrides ReadOnly
 Property SampleRowCount() As Integer
    Get
        ' Render four links in the pager row.
        Return 4
    End Get
End Property ' SampleRowCount
// Determines the number of design-time links in the pager row.
protected override int SampleRowCount
{
    get
    {
        // Render four links in the pager row.
        return 4;
    }
} // SampleRowCount
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
FormViewDesigner クラス
FormViewDesigner メンバ
System.Web.UI.Design.WebControls 名前空間
FormView
PagerSettings
System.Web.UI.WebControls.PagerSettings
DataBoundControlDesigner.SampleRowCount プロパティ
その他の技術情報
チュートリアル : Web サーバー コントロール用の基本的なコントロール デザイナ作成



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

FormViewDesigner.SampleRowCount プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FormViewDesigner.SampleRowCount プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS