Control.TopLevelControl
Control.TopLevelControl
Control.TopLevelControl
Control.TopLevelControl
Property
Definición
Obtiene el control primario que no es secundario de ningún otro control de formularios Windows Forms.Gets the parent control that is not parented by another Windows Forms control. Normalmente, se trata del Form más externo en el que está contenido el control.Typically, this is the outermost Form that the control is contained in.
public:
property System::Windows::Forms::Control ^ TopLevelControl { System::Windows::Forms::Control ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.Control TopLevelControl { get; }
member this.TopLevelControl : System.Windows.Forms.Control
Public ReadOnly Property TopLevelControl As Control
Valor de propiedad
Control que representa al control de nivel superior que contiene el control actual.The Control that represents the top-level control that contains the current control.
Comentarios
El control de nivel superior se define como el control primario que no es secundario de ningún otro control de Windows Forms.The top-level control is defined as the parent control that is not parented by another Windows Forms control. Normalmente, se trata del Form más externo en el que está contenido el control.Typically, this is the outermost Form that the control is contained in. Por ejemplo, si el control está incluido en un formulario MDI secundario Form, entonces el control de nivel superior es el elemento primario de la interfaz de múltiples documentos (MDI) Form.For example, if the control is contained on an MDI child Form, then the top-level control is the Multiple Document Interface (MDI) parent Form. Si el control no tiene un elemento primario en una Form, esta propiedad devolverá null
.If the control is not parented on a Form, this property will return null
.
Seguridad
UIPermission
para todas las ventanas obtener este valor de propiedad.for all windows to get this property value. Enumeración asociada: AllWindowsAssociated enumeration: AllWindows
Se aplica a
Consulte también:
Comentarios
Nos gustaría conocer su opinión. Elija el tipo que desea proporcionar:
Nuestro sistema de comentarios está basado en los problemas de GitHub. Más información en nuestro blog.
Cargando comentarios...