Share via


IGridProvider.RowCount Propiedad

Definición

Obtiene el número total de filas de una cuadrícula.

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

Valor de propiedad

Int32

Número total de filas de una cuadrícula.

Ejemplos

El código de ejemplo siguiente devuelve el valor de propiedad.

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

Comentarios

Las filas y columnas ocultas, según la implementación del proveedor, se pueden cargar en el árbol lógico y, por tanto, se reflejarán en las RowCount propiedades y ColumnCount . Si aún no se han cargado las filas y columnas ocultas, no se contarán.

Se aplica a

Consulte también