DataGridViewColumnHeaderCell.GetInheritedContextMenuStrip(Int32) Metoda

Definicja

Pobiera dziedziczone menu skrótów dla określonego wiersza.

public:
 override System::Windows::Forms::ContextMenuStrip ^ GetInheritedContextMenuStrip(int rowIndex);
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

Parametry

rowIndex
Int32

Indeks wiersza, który ma być pobierany ContextMenuStrip . Indeks musi mieć wartość -1, aby wskazać wiersz nagłówków kolumn.

Zwraca

Nagłówek ContextMenuStrip kolumny, jeśli istnieje; w przeciwnym razie ContextMenuStrip dziedziczony z DataGridView.

Wyjątki

rowIndex nie jest -1.

Dotyczy

Zobacz też