IGridProvider.ColumnCount 속성

정의

표에 있는 열의 총 개수를 가져옵니다.

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

속성 값

Int32

표에 있는 열의 총 개수입니다.

예제

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

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

    End Get
End Property

설명

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

적용 대상

추가 정보