ContextMenuStrip Konstruktory

Definice

Inicializuje novou instanci ContextMenuStrip třídy.

Přetížení

ContextMenuStrip()

Inicializuje novou instanci ContextMenuStrip třídy.

ContextMenuStrip(IContainer)

Inicializuje novou instanci ContextMenuStrip třídy a přidruží ji k zadanému kontejneru.

ContextMenuStrip()

Inicializuje novou instanci ContextMenuStrip třídy.

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

Platí pro

ContextMenuStrip(IContainer)

Inicializuje novou instanci ContextMenuStrip třídy a přidruží ji k zadanému kontejneru.

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)

Parametry

container
IContainer

Komponenta, která implementuje IContainer kontejner ContextMenuStrip.

Poznámky

Pomocí tohoto konstruktoru zajistěte, aby ContextMenuStrip byl odstraněn správně, protože není podřízeným formulářem.

Platí pro