IGridProvider.RowCount 속성

정의

그리드에 있는 행의 총수를 가져옵니다.

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

속성 값

Int32

그리드에 있는 행의 총수입니다.

예제

다음 예제 코드는 속성 값을 반환합니다.

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

설명

공급자 구현에 따라 숨겨진 행 및 열은 논리 트리에 로드될 수 있으므로 해당 및 ColumnCount 속성에 RowCount 반영됩니다. 숨겨진된 행 및 열이 아직 로드 되지 않은 경우에 속성에 반영 되지 않습니다.

적용 대상

추가 정보