ParentControlDesigner.GetParentForComponent(IComponent) Metodo

Definizione

Utilizzato derivando classi per determinare se restituisce il controllo in fase di progettazione o un altro oggetto Container durante l'aggiunta di un componente a esso.Used by deriving classes to determine if it returns the control being designed or some other Container while adding a component to it.

protected:
 virtual System::Windows::Forms::Control ^ GetParentForComponent(System::ComponentModel::IComponent ^ component);
protected virtual System.Windows.Forms.Control GetParentForComponent (System.ComponentModel.IComponent component);
abstract member GetParentForComponent : System.ComponentModel.IComponent -> System.Windows.Forms.Control
override this.GetParentForComponent : System.ComponentModel.IComponent -> System.Windows.Forms.Control
Protected Overridable Function GetParentForComponent (component As IComponent) As Control

Parametri

component
IComponent

Il componente per cui recuperare l'oggetto Control padre.The component for which to retrieve the parent Control.

Restituisce

L'oggetto Control padre del componente.The parent Control for the component.

Si applica a

Vedi anche