FormViewDesigner.SampleRowCount プロパティ

定義

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

protected:
 virtual property int SampleRowCount { int get(); };
protected override int SampleRowCount { get; }
member this.SampleRowCount : int
Protected Overrides ReadOnly Property SampleRowCount As Integer

プロパティ値

サンプル行の数。

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

// 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
' 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

注釈

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

適用対象

こちらもご覧ください