IGridProvider.RowCount Właściwość

Definicja

Pobiera całkowitą liczbę wierszy w siatce.

public:
 property int RowCount { int get(); };
public int RowCount { get; }
member this.RowCount : int
Public ReadOnly Property RowCount As Integer

Wartość właściwości

Całkowita liczba wierszy w siatce.

Przykłady

Poniższy przykładowy kod zwraca wartość właściwości.

/// <summary>
/// Gets the count of rows in the grid.
/// </summary>
/// <remarks>
/// gridItems is a two-dimensional array containing rows in
/// the first dimension.
/// </remarks>
int IGridProvider.RowCount
{
    get 
    {
        return gridItems.GetUpperBound(0) + 1;  
    }
}
''' <summary>
''' Gets the count of rows in the grid.
''' </summary>
''' <remarks>
''' gridItems is a two-dimensional array containing rows in
''' the first dimension.
''' </remarks>
Private ReadOnly Property RowCount() As Integer Implements IGridProvider.RowCount
    Get
        Return gridItems.GetUpperBound(0) + 1
    End Get
End Property

Uwagi

Ukryte wiersze i kolumny, w zależności od implementacji dostawcy, można załadować w drzewie logicznym i dlatego zostaną odzwierciedlone we właściwościach RowCount i ColumnCount . Jeśli ukryte wiersze i kolumny nie zostały jeszcze załadowane, nie zostaną zliczane.

Dotyczy

Zobacz też