DataGrid.VisibleRowCount 속성

정의

표시되는 행의 수를 가져옵니다.

public:
 property int VisibleRowCount { int get(); };
[System.ComponentModel.Browsable(false)]
public int VisibleRowCount { get; }
[<System.ComponentModel.Browsable(false)>]
member this.VisibleRowCount : int
Public ReadOnly Property VisibleRowCount As Integer

속성 값

Int32

뷰포트에 표시되는 행의 수입니다. 뷰포트란 표가 표시되는 사각형 영역을 말합니다. 뷰포트의 크기는 DataGrid 컨트롤의 크기에 따라 달라지므로 사용자가 컨트롤의 크기를 조정할 수 있게 되면 뷰포트도 영향을 받습니다.

특성

예제

다음 코드 예제에서는 컨트롤에 표시 되는 행 수를 반환 합니다 System.Windows.Forms.DataGrid .

Private Function ReturnVisibleRows(ByVal myGrid As DataGrid)As Integer
    ReturnVisibleRows = myGrid.VisibleRowCount
 End Function

설명

사용자가 컨트롤의 크기를 조정할 System.Windows.Forms.DataGrid 수 있는 경우 런타임에 표시되는 행 수를 변경할 수 있습니다.

적용 대상

추가 정보