ParentControlDesigner.GetParentForComponent(IComponent) ParentControlDesigner.GetParentForComponent(IComponent) ParentControlDesigner.GetParentForComponent(IComponent) ParentControlDesigner.GetParentForComponent(IComponent) Method

Definición

Utilizado por clases derivadas para determinar si devuelve el control que se está dibujando o algún otro control Container al agregarle un componente.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

Parámetros

component
IComponent IComponent IComponent IComponent

Componente para el cual se va a recuperar el control Control principal.The component for which to retrieve the parent Control.

Devoluciones

Control Control principal para el componente.The parent Control for the component.

Se aplica a

Consulte también: