DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32) DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32) DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32) DataGridViewHeaderCell.GetInheritedContextMenuStrip(Int32) Method

Definición

Obtiene el menú contextual de la celda de encabezado.Gets the shortcut menu of the header cell.

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 Int32 Int32 Int32

Se omite en esta implementación.Ignored by this implementation.

Devoluciones

Un control ContextMenuStrip si DataGridViewHeaderCell o DataGridView tienen asignado un menú contextual; de lo contrario, es null.A ContextMenuStrip if the DataGridViewHeaderCell or DataGridView has a shortcut menu assigned; otherwise, null.

Comentarios

Si no tiene un menú contextual DataGridViewHeaderCell , heredará DataGridViewel menú contextual de. DataGridViewHeaderCellIf the DataGridViewHeaderCell does not have a shortcut menu, the DataGridViewHeaderCell will inherit the shortcut menu from the DataGridView. Si tampoco tiene un menú contextual, el GetInheritedContextMenuStrip método devolverá null. DataGridViewIf the DataGridView also does not have a shortcut menu, then the GetInheritedContextMenuStrip method will return null.

Se aplica a

Consulte también: