DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32) Método

Definición

Obtiene el menú contextual de la celda de encabezado.

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

Parámetros

rowIndex
Int32

Se omite en esta implementación.

Devoluciones

Un control ContextMenuStrip si DataGridViewHeaderCell o DataGridView tienen asignado un menú contextual; de lo contrario, es null.

Comentarios

DataGridViewHeaderCell Si no tiene un menú contextual, DataGridViewHeaderCell heredará el menú contextual de DataGridView. DataGridView Si tampoco tiene un menú contextual, el GetInheritedContextMenuStrip método devolverá null.

Se aplica a

Consulte también