DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32) Metoda

Definice

Získá místní nabídku buňky záhlaví.

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

Ignorováno touto implementací.

Návraty

ContextMenuStrip

A ContextMenuStrip pokud DataGridViewHeaderCell má přiřazenou DataGridView místní nabídku, nulljinak .

Poznámky

DataGridViewHeaderCell Pokud nemá místní nabídku, DataGridViewHeaderCell zdědí místní nabídku z nabídky DataGridView. DataGridView Pokud také nemá místní nabídku, metoda GetInheritedContextMenuStrip vrátí null.

Platí pro

Viz také