IGridProvider.RowCount Propriedade

Definição

Obtém o número total de linhas em uma grade.

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

Valor da propriedade

Int32

O número total de linhas em uma grade.

Exemplos

O código de exemplo a seguir retorna o valor da propriedade.

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

Comentários

Linhas e colunas ocultas, dependendo da implementação do provedor, podem ser carregadas na árvore lógica e, portanto, serão refletidas nas propriedades e ColumnCount nas RowCount propriedades. Se as linhas e colunas ocultas ainda não tiverem sido carregadas, elas não serão contadas.

Aplica-se a

Confira também