DataGridView.UpdateRowHeightInfo(Int32, Boolean) 메서드

정의

지정된 행 또는 행이 높이 정보를 업데이트하도록 합니다.

public:
 void UpdateRowHeightInfo(int rowIndex, bool updateToEnd);
public void UpdateRowHeightInfo(int rowIndex, bool updateToEnd);
member this.UpdateRowHeightInfo : int * bool -> unit
Public Sub UpdateRowHeightInfo (rowIndex As Integer, updateToEnd As Boolean)

매개 변수

rowIndex
Int32

업데이트할 첫 번째 행의 인덱스(0부터 시작)입니다.

updateToEnd
Boolean

true 지정된 행과 모든 후속 행을 업데이트합니다.

예외

rowIndex 가 0보다 작으며 updateToEndtrue.

-또는-

rowIndex가 -1 미만이고 updateToEndfalse

-또는-

rowIndex가 컬렉션에서 가장 높은 행 인덱스보다 큰 경우 Rows

설명

이 메서드는 행 높이 및 이벤트에 대 한 RowHeightInfoNeededRowHeightInfoPushed 처리기를 사용 하 여 직접 유지 하는 경우에 유용 합니다. 이벤트 처리기 외부에서 저장된 행 높이를 변경할 때마다 이 메서드를 RowHeightInfoPushed 호출합니다. 이렇게 하면 컨트롤이 DataGridView 이벤트 처리기를 통해 RowHeightInfoNeeded 업데이트된 높이 정보를 검색하도록 강제합니다.

적용 대상

추가 정보