DataGridViewColumnHeaderCell.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입니다.

예외

rowIndex가 -1이 아닌 경우

적용 대상

추가 정보