IGridProvider.RowCount Свойство

Определение

Получает общее число строк в сетке.

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

Значение свойства

Общее число строк в сетке.

Примеры

В следующем примере кода возвращается значение свойства .

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

Комментарии

Скрытые строки и столбцы в зависимости от реализации поставщика могут быть загружены в логическое дерево и, следовательно, будут отражены в RowCount свойствах и ColumnCount . Если скрытые строки и столбцы еще не загружены, они не будут учитываться.

Применяется к

См. также раздел