RowDefinitionCollection.Count 속성

정의

RowDefinitionCollection의 이 인스턴스 내에 있는 총 항목 수를 가져옵니다.

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

속성 값

Int32

컬렉션의 총 항목 수입니다. 이 속성에는 기본값이 없습니다.

구현

예제

다음 예제에서는 사용 하는 방법에 설명 합니다 Count 속성입니다.

private void rowCount(object sender, RoutedEventArgs e)
{
    tp2.Text = "The current number of Rows is: " + grid1.RowDefinitions.Count;
}
Private Sub rowCount(ByVal sender As Object, ByVal e As RoutedEventArgs)
    tp2.Text = "The current number of Rows is: " + grid1.RowDefinitions.Count.ToString()
End Sub

전체 샘플을 보려면 방법: 조작할 열 및 행으로 사용 하 여 ColumnDefinitionsCollections 및 RowDefinitionsCollections합니다.

설명

RowDefinitionCollection 0부터 시작 하는 인덱싱 시스템을 사용합니다.

적용 대상

추가 정보