DataGridViewRowHeaderCell.GetInheritedContextMenuStrip(Int32) 메서드

정의

지정된 행에 대한 상속된 바로 가기 메뉴를 검색합니다.

public:
 override System::Windows::Forms::ContextMenuStrip ^ GetInheritedContextMenuStrip(int rowIndex);
public override System.Windows.Forms.ContextMenuStrip GetInheritedContextMenuStrip (int rowIndex);
override this.GetInheritedContextMenuStrip : int -> System.Windows.Forms.ContextMenuStrip
Public Overrides Function GetInheritedContextMenuStrip (rowIndex As Integer) As ContextMenuStrip

매개 변수

rowIndex
Int32

ContextMenuStrip을 가져올 행의 인덱스입니다. 열 머리글의 행을 나타내려면 인덱스가 -1이어야 합니다.

반환

ContextMenuStrip

행의 ContextMenuStrip이 있으면 해당 스트립을 반환하고, 그렇지 않으면 ContextMenuStrip에서 상속한 DataGridView을 반환합니다.

예외

셀의 DataGridView 속성 값이 null이 아니고 지정된 rowIndex가 0보다 작거나 열의 행 수 - 1보다 큰 경우

적용 대상

추가 정보