ContextMenuStrip ContextMenuStrip ContextMenuStrip ContextMenuStrip Constructors

Definición

Sobrecargas

ContextMenuStrip() ContextMenuStrip() ContextMenuStrip()

Inicializa una nueva instancia de la clase ContextMenuStrip.Initializes a new instance of the ContextMenuStrip class.

ContextMenuStrip(IContainer) ContextMenuStrip(IContainer) ContextMenuStrip(IContainer) ContextMenuStrip(IContainer)

Inicializa una nueva instancia de la ContextMenuStrip clase y lo asocia con el contenedor especificado.Initializes a new instance of the ContextMenuStrip class and associates it with the specified container.

ContextMenuStrip() ContextMenuStrip() ContextMenuStrip()

Inicializa una nueva instancia de la clase ContextMenuStrip.Initializes a new instance of the ContextMenuStrip class.

public:
 ContextMenuStrip();
public ContextMenuStrip ();
Public Sub New ()

ContextMenuStrip(IContainer) ContextMenuStrip(IContainer) ContextMenuStrip(IContainer) ContextMenuStrip(IContainer)

Inicializa una nueva instancia de la ContextMenuStrip clase y lo asocia con el contenedor especificado.Initializes a new instance of the ContextMenuStrip class and associates it with the specified container.

public:
 ContextMenuStrip(System::ComponentModel::IContainer ^ container);
public ContextMenuStrip (System.ComponentModel.IContainer container);
new System.Windows.Forms.ContextMenuStrip : System.ComponentModel.IContainer -> System.Windows.Forms.ContextMenuStrip
Public Sub New (container As IContainer)

Parámetros

container
IContainer IContainer IContainer IContainer

Un componente que implementa IContainer que es el contenedor de la ContextMenuStrip.A component that implements IContainer that is the container of the ContextMenuStrip.

Comentarios

Utilice este constructor para asegurarse de que el ContextMenuStrip se elimina correctamente, ya que no es un elemento secundario del formulario.Use this constructor to ensure that the ContextMenuStrip is disposed of properly, since it is not a child of the form.

Se aplica a