ControlDesigner ControlDesigner ControlDesigner ControlDesigner Class

Definición

Extiende el comportamiento de un objeto Control en modo de diseño.Extends the design mode behavior of a Control.

public ref class ControlDesigner : System::ComponentModel::Design::ComponentDesigner
public class ControlDesigner : System.ComponentModel.Design.ComponentDesigner
type ControlDesigner = class
    inherit ComponentDesigner
Public Class ControlDesigner
Inherits ComponentDesigner
Herencia
ControlDesignerControlDesignerControlDesignerControlDesigner
Derivado

Ejemplos

En la implementación ControlDesigner de ejemplo siguiente MouseEnter se MouseLeave muestra el control y los eventos, el dibujo de un control desde el código IDesignerFilter del diseñador y el uso de una parte de la interfaz para agregar una propiedad para el control en tiempo de diseño.The following example ControlDesigner implementation demonstrates handling MouseEnter and MouseLeave events, drawing on a control from designer code, and using part of the IDesignerFilter interface to add a property for the control at design time. El siguiente código de ejemplo contiene un diseñador y un control de usuario de ejemplo asociado al diseñador.The following sample code contains a designer and a sample user control associated with the designer. Para compilar este ejemplo, compile el ejemplo en una biblioteca de clases, agregue una referencia a la biblioteca a un proyecto de Windows Forms, agregue el control al cuadro de herramientas y agregue una instancia del control al formulario.To build this sample, compile the sample into a class library, add a reference to the library to a Windows Forms project, add the control to the Toolbox, and add an instance of the control to your form. Al señalar el control, se resalta el contorno interno del perímetro del control y el color usado para dibujar el contorno corresponde a la OutlineColor propiedad que el diseñador ha agregado a las propiedades enumeradas para el control.When you point to the control, the inner outline of the perimeter of the control is highlighted, and the color used to draw the outline corresponds to the OutlineColor property that the designer has added to the properties listed for the control.

Agregue una referencia al ensamblado System. Design para compilar el ejemplo de código.Add a reference to the System.Design assembly to compile the code example.

using namespace System;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Collections;
using namespace System::Drawing;
using namespace System::Windows::Forms;
using namespace System::Windows::Forms::Design;
using namespace System::Security::Permissions;

   public ref class TestControlDesigner: public System::Windows::Forms::Design::ControlDesigner
   {
   private:
      bool mouseover;
      Color lineColor;

   public:

      property Color OutlineColor 
      {
         Color get()
         {
            return lineColor;
         }

         void set( Color value )
         {
            lineColor = value;
         }

      }
      TestControlDesigner()
      {
         mouseover = false;
         lineColor = Color::White;
      }

   protected:
      virtual void OnMouseEnter() override
      {
         this->mouseover = true;
         this->Control->Refresh();
      }

      virtual void OnMouseLeave() override
      {
         this->mouseover = false;
         this->Control->Refresh();
      }

      virtual void OnPaintAdornments( System::Windows::Forms::PaintEventArgs^ pe ) override
      {
         if ( this->mouseover )
                  pe->Graphics->DrawRectangle( gcnew Pen( gcnew SolidBrush( this->lineColor ),6 ), 0, 0, this->Control->Size.Width, this->Control->Size.Height );
      }

   protected:
      [ReflectionPermission(SecurityAction::Demand, Flags=ReflectionPermissionFlag::MemberAccess)]
      virtual void PreFilterProperties( System::Collections::IDictionary^ properties ) override
      {
         properties->Add( "OutlineColor", TypeDescriptor::CreateProperty( TestControlDesigner::typeid, "OutlineColor", System::Drawing::Color::typeid, nullptr ) );
      }
   };

   [DesignerAttribute(TestControlDesigner::typeid)]
   public ref class TestControl: public System::Windows::Forms::UserControl
   {
   private:
      System::ComponentModel::Container^ components;

   public:
      TestControl()
      {
         components = gcnew System::ComponentModel::Container;
      }

   protected:
      ~TestControl()
      {
         if ( components != nullptr )
         {
            delete components;
         }
      }
   };
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace ControlDesignerExample
{
    // ExampleControlDesigner is an example control designer that 
    // demonstrates basic functions of a ControlDesigner.
    [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] 
    public class ExampleControlDesigner  : System.Windows.Forms.Design.ControlDesigner
    {
        // This boolean state reflects whether the mouse is over the control.
        private bool mouseover = false;
        // This color is a private field for the OutlineColor property.
        private Color lineColor = Color.White;

        // This color is used to outline the control when the mouse is 
        // over the control.
        public Color OutlineColor
        {
            get
            {
                return lineColor;
            }
            set
            {
                lineColor = value;
            }
        }

        public ExampleControlDesigner()
        {
        }

        // Sets a value and refreshes the control's display when the 
        // mouse position enters the area of the control.
        protected override void OnMouseEnter()
        {
            this.mouseover = true;
            this.Control.Refresh();
        }    

        // Sets a value and refreshes the control's display when the 
        // mouse position enters the area of the control.        
        protected override void OnMouseLeave()
        {
            this.mouseover = false;            
            this.Control.Refresh();
        }        
        
        // Draws an outline around the control when the mouse is 
        // over the control.    
        protected override void OnPaintAdornments(System.Windows.Forms.PaintEventArgs pe)
        {
            if (this.mouseover)
            {
                pe.Graphics.DrawRectangle(
                    new Pen(new SolidBrush(this.lineColor), 6), 
                    0, 
                    0, 
                    this.Control.Size.Width, 
                    this.Control.Size.Height);
            }
        }

        // Adds a property to this designer's control at design time 
        // that indicates the outline color to use. 
        // The DesignOnlyAttribute ensures that the OutlineColor
        // property is not serialized by the designer.
        protected override void PreFilterProperties(System.Collections.IDictionary properties)
        {
            PropertyDescriptor pd = TypeDescriptor.CreateProperty(
                typeof(ExampleControlDesigner), 
                "OutlineColor",
                typeof(System.Drawing.Color),
                new Attribute[] { new DesignOnlyAttribute(true) });

            properties.Add("OutlineColor", pd);
        }
    }

    // This example control demonstrates the ExampleControlDesigner.
    [DesignerAttribute(typeof(ExampleControlDesigner))]
    public class ExampleControl : System.Windows.Forms.UserControl
    {        
        private System.ComponentModel.Container components = null;

        public ExampleControl()
        {
            components = new System.ComponentModel.Container();
        }

        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                if( components != null )
                components.Dispose();
            }
            base.Dispose( disposing );
        }
    }
}
Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Collections
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Windows.Forms.Design

Namespace ControlDesignerExample
    _
    ' ExampleControlDesigner is an example control designer that 
    ' demonstrates basic functions of a ControlDesigner.
    <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _
    Public Class ExampleControlDesigner
        Inherits System.Windows.Forms.Design.ControlDesigner

        ' This boolean state reflects whether the mouse is over the control.
        Private mouseover As Boolean = False
        ' This color is a private field for the OutlineColor property.
        Private lineColor As Color = Color.White

        ' This color is used to outline the control when the mouse is 
        ' over the control.
        Public Property OutlineColor() As Color
            Get
                Return lineColor
            End Get
            Set(ByVal Value As Color)
                lineColor = Value
            End Set
        End Property

        Public Sub New()
        End Sub

        ' Sets a value and refreshes the control's display when the 
        ' mouse position enters the area of the control.
        Protected Overrides Sub OnMouseEnter()
            Me.mouseover = True
            Me.Control.Refresh()
        End Sub

        ' Sets a value and refreshes the control's display when the 
        ' mouse position enters the area of the control.		
        Protected Overrides Sub OnMouseLeave()
            Me.mouseover = False
            Me.Control.Refresh()
        End Sub

        ' Draws an outline around the control when the mouse is 
        ' over the control.	
        Protected Overrides Sub OnPaintAdornments(ByVal pe As System.Windows.Forms.PaintEventArgs)
            If Me.mouseover Then
                pe.Graphics.DrawRectangle(New Pen(New SolidBrush(Me.lineColor), 6), 0, 0, Me.Control.Size.Width, Me.Control.Size.Height)
            End If
        End Sub

        ' Adds a property to this designer's control at design time 
        ' that indicates the outline color to use.
        ' The DesignOnlyAttribute ensures that the OutlineColor
        ' property is not serialized by the designer.
        Protected Overrides Sub PreFilterProperties(ByVal properties As System.Collections.IDictionary)
            Dim pd As PropertyDescriptor = TypeDescriptor.CreateProperty( _
            GetType(ExampleControlDesigner), _
            "OutlineColor", _
            GetType(System.Drawing.Color), _
            New Attribute() {New DesignOnlyAttribute(True)})

            properties.Add("OutlineColor", pd)
        End Sub
    End Class

    ' This example control demonstrates the ExampleControlDesigner.
    <DesignerAttribute(GetType(ExampleControlDesigner))> _
     Public Class ExampleControl
        Inherits System.Windows.Forms.UserControl
        Private components As System.ComponentModel.Container = Nothing

        Public Sub New()
            components = New System.ComponentModel.Container()
        End Sub

        Protected Overloads Sub Dispose(ByVal disposing As Boolean)
            If disposing Then
                If (components IsNot Nothing) Then
                    components.Dispose()
                End If
            End If
            MyBase.Dispose(disposing)
        End Sub
    End Class

End Namespace

Comentarios

ControlDesignerproporciona una clase base para los diseñadores de componentes que derivan de Control.ControlDesigner provides a base class for designers of components that derive from Control. Además de los métodos y la funcionalidad heredados de ComponentDesigner la clase ControlDesigner , proporciona métodos adicionales para admitir la extensión y modificación del comportamiento de un Control asociado en tiempo de diseño.In addition to the methods and functionality inherited from the ComponentDesigner class, ControlDesigner provides additional methods to support extending and altering the behavior of an associated Control at design time.

Puede asociar un diseñador a un tipo mediante DesignerAttribute.You can associate a designer with a type using a DesignerAttribute. Para obtener información general sobre cómo personalizar el comportamiento en tiempo de diseño, vea extender la compatibilidad en tiempo de diseño.For an overview of customizing design time behavior, see Extending Design-Time Support.

Constructores

ControlDesigner() ControlDesigner() ControlDesigner() ControlDesigner()

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

Campos

accessibilityObj accessibilityObj accessibilityObj accessibilityObj

Especifica el objeto de accesibilidad para el diseñador.Specifies the accessibility object for the designer.

InvalidPoint InvalidPoint InvalidPoint InvalidPoint

Define un Point local que representa los valores de un Point no válido.Defines a local Point that represents the values of an invalid Point.

Propiedades

AccessibilityObject AccessibilityObject AccessibilityObject AccessibilityObject

Obtiene AccessibleObject asignado al control.Gets the AccessibleObject assigned to the control.

ActionLists ActionLists ActionLists ActionLists

Obtiene las listas de acciones en tiempo de diseño que admite el componente asociado al diseñador.Gets the design-time action lists supported by the component associated with the designer.

(Inherited from ComponentDesigner)
AssociatedComponents AssociatedComponents AssociatedComponents AssociatedComponents

Obtiene la colección de componentes asociados al componente administrado por el diseñador.Gets the collection of components associated with the component managed by the designer.

AutoResizeHandles AutoResizeHandles AutoResizeHandles AutoResizeHandles

Obtiene o establece un valor que indica si la asignación del controlador de cambio de tamaño depende del valor de la propiedad AutoSize.Gets or sets a value indicating whether resize handle allocation depends on the value of the AutoSize property.

BehaviorService BehaviorService BehaviorService BehaviorService

Obtiene el BehaviorService del entorno de diseño.Gets the BehaviorService from the design environment.

Component Component Component Component

Obtiene el componente que el diseñador está creando.Gets the component this designer is designing.

(Inherited from ComponentDesigner)
Control Control Control Control

Obtiene el control que diseña el diseñador.Gets the control that the designer is designing.

EnableDragRect EnableDragRect EnableDragRect EnableDragRect

Obtiene un valor que indica si se pueden dibujar rectángulos de arrastre en este componente del diseñador.Gets a value indicating whether drag rectangles can be drawn on this designer component.

InheritanceAttribute InheritanceAttribute InheritanceAttribute InheritanceAttribute

Obtiene el InheritanceAttribute del diseñador.Gets the InheritanceAttribute of the designer.

Inherited Inherited Inherited Inherited

Obtiene un valor que indica si este componente es heredado.Gets a value indicating whether this component is inherited.

(Inherited from ComponentDesigner)
ITreeDesigner.Children ITreeDesigner.Children ITreeDesigner.Children ITreeDesigner.Children

Para una descripción de este miembro, consulte la propiedad Children.For a description of this member, see the Children property.

(Inherited from ComponentDesigner)
ITreeDesigner.Parent ITreeDesigner.Parent ITreeDesigner.Parent ITreeDesigner.Parent

Para una descripción de este miembro, consulte la propiedad Parent.For a description of this member, see the Parent property.

(Inherited from ComponentDesigner)
ParentComponent ParentComponent ParentComponent ParentComponent

Obtiene el componente principal de ControlDesigner.Gets the parent component for the ControlDesigner.

ParticipatesWithSnapLines ParticipatesWithSnapLines ParticipatesWithSnapLines ParticipatesWithSnapLines

Obtiene un valor que indica si ControlDesigner permitirá la alineación de las líneas de ajuste durante una operación de arrastre.Gets a value indicating whether the ControlDesigner will allow snapline alignment during a drag operation.

SelectionRules SelectionRules SelectionRules SelectionRules

Obtiene las reglas de selección que indican las posibilidades de movimiento de un componente.Gets the selection rules that indicate the movement capabilities of a component.

ShadowProperties ShadowProperties ShadowProperties ShadowProperties

Obtiene una colección de valores de propiedad que reemplazan la configuración del usuario.Gets a collection of property values that override user settings.

(Inherited from ComponentDesigner)
SnapLines SnapLines SnapLines SnapLines

Obtiene una lista de objetos SnapLine que representan los puntos de alineación significativos de este control.Gets a list of SnapLine objects representing significant alignment points for this control.

Verbs Verbs Verbs Verbs

Obtiene los verbos en tiempo de diseño que admite el componente asociado al diseñador.Gets the design-time verbs supported by the component that is associated with the designer.

(Inherited from ComponentDesigner)

Métodos

BaseWndProc(Message) BaseWndProc(Message) BaseWndProc(Message) BaseWndProc(Message)

Procesa los mensajes de Windows.Processes Windows messages.

CanBeParentedTo(IDesigner) CanBeParentedTo(IDesigner) CanBeParentedTo(IDesigner) CanBeParentedTo(IDesigner)

Indica si el control del diseñador especificado puede ser el principal de este control de diseñador.Indicates if this designer's control can be parented by the control of the specified designer.

DefWndProc(Message) DefWndProc(Message) DefWndProc(Message) DefWndProc(Message)

Proporciona procesamiento predeterminado para los mensajes de Windows.Provides default processing for Windows messages.

DisplayError(Exception) DisplayError(Exception) DisplayError(Exception) DisplayError(Exception)

Muestra información al usuario acerca de la excepción especificada.Displays information about the specified exception to the user.

Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos que usa ComponentDesigner.Releases all resources used by the ComponentDesigner.

(Inherited from ComponentDesigner)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera los recursos no administrados que usa ControlDesigner y, de forma opcional, libera los recursos administrados.Releases the unmanaged resources used by the ControlDesigner and optionally releases the managed resources.

DoDefaultAction() DoDefaultAction() DoDefaultAction() DoDefaultAction()

Crea una firma de método en el archivo de código fuente para el evento predeterminado del componente y hace navegar el cursor del usuario en esa ubicación.Creates a method signature in the source code file for the default event on the component and navigates the user's cursor to that location.

(Inherited from ComponentDesigner)
EnableDesignMode(Control, String) EnableDesignMode(Control, String) EnableDesignMode(Control, String) EnableDesignMode(Control, String)

Habilita la funcionalidad en tiempo de diseño para un control secundario.Enables design time functionality for a child control.

EnableDragDrop(Boolean) EnableDragDrop(Boolean) EnableDragDrop(Boolean) EnableDragDrop(Boolean)

Habilita o deshabilita la compatibilidad con arrastrar y colocar del control que se está diseñando.Enables or disables drag-and-drop support for the control being designed.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetControlGlyph(GlyphSelectionType) GetControlGlyph(GlyphSelectionType) GetControlGlyph(GlyphSelectionType) GetControlGlyph(GlyphSelectionType)

Devuelve ControlBodyGlyph que representa los límites de este control.Returns a ControlBodyGlyph representing the bounds of this control.

GetGlyphs(GlyphSelectionType) GetGlyphs(GlyphSelectionType) GetGlyphs(GlyphSelectionType) GetGlyphs(GlyphSelectionType)

Obtiene una colección de objetos Glyph que representan los bordes de selección y los identificadores de agarre de un control estándar.Gets a collection of Glyph objects representing the selection borders and grab handles for a standard control.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetHitTest(Point) GetHitTest(Point) GetHitTest(Point) GetHitTest(Point)

Indica si el control debe controlar un clic con el mouse en el punto especificado.Indicates whether a mouse click at the specified point should be handled by the control.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Intenta recuperar el tipo de servicio especificado del sitio en modo de diseño del componente del diseñador.Attempts to retrieve the specified type of service from the design mode site of the designer's component.

(Inherited from ComponentDesigner)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
HookChildControls(Control) HookChildControls(Control) HookChildControls(Control) HookChildControls(Control)

Enruta los mensajes desde los controles secundarios del control especificado al diseñador.Routes messages from the child controls of the specified control to the designer.

Initialize(IComponent) Initialize(IComponent) Initialize(IComponent) Initialize(IComponent)

Inicializa el diseñador con el componente especificado.Initializes the designer with the specified component.

InitializeExistingComponent(IDictionary) InitializeExistingComponent(IDictionary) InitializeExistingComponent(IDictionary) InitializeExistingComponent(IDictionary)

Vuelve a inicializar un componente existente.Re-initializes an existing component.

InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary)

Inicializa un componente recién creado.Initializes a newly created component.

InitializeNonDefault() InitializeNonDefault() InitializeNonDefault() InitializeNonDefault()

Inicializa las propiedades del control con los valores no predeterminados.Initializes properties of the control to any non-default values.

InternalControlDesigner(Int32) InternalControlDesigner(Int32) InternalControlDesigner(Int32) InternalControlDesigner(Int32)

Devuelve al diseñador de controles internos el índice especificado en ControlDesigner.Returns the internal control designer with the specified index in the ControlDesigner.

InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner)

Obtiene el objeto InheritanceAttribute de la enumeración ComponentDesigner especificada.Gets the InheritanceAttribute of the specified ComponentDesigner.

(Inherited from ComponentDesigner)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
NumberOfInternalControlDesigners() NumberOfInternalControlDesigners() NumberOfInternalControlDesigners() NumberOfInternalControlDesigners()

Devuelve el número de diseñadores de controles internos en ControlDesigner.Returns the number of internal control designers in the ControlDesigner.

OnContextMenu(Int32, Int32) OnContextMenu(Int32, Int32) OnContextMenu(Int32, Int32) OnContextMenu(Int32, Int32)

Muestra el menú contextual y permite realizar otros procesos adicionales cuando el menú contextual está a punto de mostrarse.Shows the context menu and provides an opportunity to perform additional processing when the context menu is about to be displayed.

OnCreateHandle() OnCreateHandle() OnCreateHandle() OnCreateHandle()

Permite realizar otros procesos adicionales inmediatamente después de crear el identificador del control.Provides an opportunity to perform additional processing immediately after the control handle has been created.

OnDragComplete(DragEventArgs) OnDragComplete(DragEventArgs) OnDragComplete(DragEventArgs) OnDragComplete(DragEventArgs)

Recibe una llamada para limpiar una operación de arrastrar y colocar.Receives a call to clean up a drag-and-drop operation.

OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs)

Recibe una llamada cuando se coloca un objeto de arrastrar y colocar en la vista del diseñador del control.Receives a call when a drag-and-drop object is dropped onto the control designer view.

OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs)

Recibe una llamada cuando una operación de arrastrar y colocar entra en la vista del diseñador del control.Receives a call when a drag-and-drop operation enters the control designer view.

OnDragLeave(EventArgs) OnDragLeave(EventArgs) OnDragLeave(EventArgs) OnDragLeave(EventArgs)

Recibe una llamada cuando una operación de arrastrar y colocar sale de la vista del diseñador del control.Receives a call when a drag-and-drop operation leaves the control designer view.

OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

Recibe una llamada cuando se arrastra un objeto de arrastrar y colocar en la vista del diseñador del control.Receives a call when a drag-and-drop object is dragged over the control designer view.

OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs)

Recibe una llamada mientras se está realizando una operación de arrastrar y colocar para proporcionar guías visuales basadas en la ubicación del mouse cuando se está realizando una operación de arrastre.Receives a call when a drag-and-drop operation is in progress to provide visual cues based on the location of the mouse while a drag operation is in progress.

OnMouseDragBegin(Int32, Int32) OnMouseDragBegin(Int32, Int32) OnMouseDragBegin(Int32, Int32) OnMouseDragBegin(Int32, Int32)

Recibe una llamada cuando se presiona el botón primario del mouse y se mantiene presionado mientras está sobre el componente.Receives a call in response to the left mouse button being pressed and held while over the component.

OnMouseDragEnd(Boolean) OnMouseDragEnd(Boolean) OnMouseDragEnd(Boolean) OnMouseDragEnd(Boolean)

Recibe una llamada al final de una operación de arrastrar y colocar para terminar o cancelar la operación.Receives a call at the end of a drag-and-drop operation to complete or cancel the operation.

OnMouseDragMove(Int32, Int32) OnMouseDragMove(Int32, Int32) OnMouseDragMove(Int32, Int32) OnMouseDragMove(Int32, Int32)

Recibe una llamada en cada movimiento del mouse durante una operación de arrastrar y colocar.Receives a call for each movement of the mouse during a drag-and-drop operation.

OnMouseEnter() OnMouseEnter() OnMouseEnter() OnMouseEnter()

Recibe una llamada cuando el mouse entra en el control por primera vez.Receives a call when the mouse first enters the control.

OnMouseHover() OnMouseHover() OnMouseHover() OnMouseHover()

Recibe una llamada después de que el mouse se desplace sobre el control.Receives a call after the mouse hovers over the control.

OnMouseLeave() OnMouseLeave() OnMouseLeave() OnMouseLeave()

Recibe una llamada cuando el mouse entra en el control por primera vez.Receives a call when the mouse first enters the control.

OnPaintAdornments(PaintEventArgs) OnPaintAdornments(PaintEventArgs) OnPaintAdornments(PaintEventArgs) OnPaintAdornments(PaintEventArgs)

Recibe una llamada cuando el control que el diseñador está administrando tiene su superficie dibujada, de manera que el diseñador pueda dibujar otros adornos en la parte superior del control.Receives a call when the control that the designer is managing has painted its surface so the designer can paint any additional adornments on top of the control.

OnSetComponentDefaults() OnSetComponentDefaults() OnSetComponentDefaults() OnSetComponentDefaults()

Se llama cuando se inicializa el diseñador.Called when the designer is initialized.

OnSetCursor() OnSetCursor() OnSetCursor() OnSetCursor()

Recibe una llamada cada vez que es necesario establecer el cursor.Receives a call each time the cursor needs to be set.

PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary)

Permite a un diseñador cambiar o quitar elementos en el conjunto de atributos que expone mediante un TypeDescriptor.Allows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PostFilterEvents(IDictionary) PostFilterEvents(IDictionary) PostFilterEvents(IDictionary) PostFilterEvents(IDictionary)

Permite a un diseñador cambiar o quitar elementos del conjunto de eventos que expone mediante un objeto TypeDescriptor.Allows a designer to change or remove items from the set of events that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PostFilterProperties(IDictionary) PostFilterProperties(IDictionary) PostFilterProperties(IDictionary) PostFilterProperties(IDictionary)

Permite a un diseñador cambiar o quitar elementos del conjunto de propiedades que expone mediante un objeto TypeDescriptor.Allows a designer to change or remove items from the set of properties that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PreFilterAttributes(IDictionary) PreFilterAttributes(IDictionary) PreFilterAttributes(IDictionary) PreFilterAttributes(IDictionary)

Permite a un diseñador agregar elementos al conjunto de atributos que expone mediante un objeto TypeDescriptor.Allows a designer to add to the set of attributes that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PreFilterEvents(IDictionary) PreFilterEvents(IDictionary) PreFilterEvents(IDictionary) PreFilterEvents(IDictionary)

Permite a un diseñador agregar elementos al conjunto de eventos que expone mediante un objeto TypeDescriptor.Allows a designer to add to the set of events that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PreFilterProperties(IDictionary) PreFilterProperties(IDictionary) PreFilterProperties(IDictionary) PreFilterProperties(IDictionary)

Ajusta el conjunto de propiedades que el componente expone mediante un TypeDescriptor.Adjusts the set of properties the component exposes through a TypeDescriptor.

RaiseComponentChanged(MemberDescriptor, Object, Object) RaiseComponentChanged(MemberDescriptor, Object, Object) RaiseComponentChanged(MemberDescriptor, Object, Object) RaiseComponentChanged(MemberDescriptor, Object, Object)

Notifica a IComponentChangeService que este componente se ha cambiado.Notifies the IComponentChangeService that this component has been changed.

(Inherited from ComponentDesigner)
RaiseComponentChanging(MemberDescriptor) RaiseComponentChanging(MemberDescriptor) RaiseComponentChanging(MemberDescriptor) RaiseComponentChanging(MemberDescriptor)

Notifica a IComponentChangeService que este componente se va a cambiar.Notifies the IComponentChangeService that this component is about to be changed.

(Inherited from ComponentDesigner)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)
UnhookChildControls(Control) UnhookChildControls(Control) UnhookChildControls(Control) UnhookChildControls(Control)

Enruta los mensajes para los secundarios del control especificado a cada uno de los controles en lugar de a un diseñador principal.Routes messages for the children of the specified control to each control rather than to a parent designer.

WndProc(Message) WndProc(Message) WndProc(Message) WndProc(Message)

Procesa los mensajes de Windows y, de forma opcional, los enruta al control.Processes Windows messages and optionally routes them to the control.

Implementaciones de interfaz explícitas

IDesignerFilter.PostFilterAttributes(IDictionary) IDesignerFilter.PostFilterAttributes(IDictionary) IDesignerFilter.PostFilterAttributes(IDictionary) IDesignerFilter.PostFilterAttributes(IDictionary)

Para obtener una descripción de este miembro, vea el método PostFilterAttributes(IDictionary).For a description of this member, see the PostFilterAttributes(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary) IDesignerFilter.PostFilterEvents(IDictionary) IDesignerFilter.PostFilterEvents(IDictionary) IDesignerFilter.PostFilterEvents(IDictionary)

Para obtener una descripción de este miembro, vea el método PostFilterEvents(IDictionary).For a description of this member, see the PostFilterEvents(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary) IDesignerFilter.PostFilterProperties(IDictionary) IDesignerFilter.PostFilterProperties(IDictionary) IDesignerFilter.PostFilterProperties(IDictionary)

Para obtener una descripción de este miembro, vea el método PostFilterProperties(IDictionary).For a description of this member, see the PostFilterProperties(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary) IDesignerFilter.PreFilterAttributes(IDictionary) IDesignerFilter.PreFilterAttributes(IDictionary) IDesignerFilter.PreFilterAttributes(IDictionary)

Para obtener una descripción de este miembro, vea el método PreFilterAttributes(IDictionary).For a description of this member, see the PreFilterAttributes(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary) IDesignerFilter.PreFilterEvents(IDictionary) IDesignerFilter.PreFilterEvents(IDictionary) IDesignerFilter.PreFilterEvents(IDictionary)

Para obtener una descripción de este miembro, vea el método PreFilterEvents(IDictionary).For a description of this member, see the PreFilterEvents(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary) IDesignerFilter.PreFilterProperties(IDictionary) IDesignerFilter.PreFilterProperties(IDictionary) IDesignerFilter.PreFilterProperties(IDictionary)

Para obtener una descripción de este miembro, vea el método PreFilterProperties(IDictionary).For a description of this member, see the PreFilterProperties(IDictionary) method.

(Inherited from ComponentDesigner)

Se aplica a

Consulte también: