ParentControlDesigner Classe

Definição

Estende o comportamento do modo de design de um Control que suporta controlos aninhados.

public ref class ParentControlDesigner : System::Windows::Forms::Design::ControlDesigner
public class ParentControlDesigner : System.Windows.Forms.Design.ControlDesigner
type ParentControlDesigner = class
    inherit ControlDesigner
Public Class ParentControlDesigner
Inherits ControlDesigner
Herança
ParentControlDesigner
Derivado

Exemplos

O exemplo seguinte demonstra como implementar um arquivo personalizado ParentControlDesignerde . Este exemplo de código faz parte de um exemplo maior fornecido para a IToolboxUser interface.

#using <System.Drawing.dll>
#using <System.dll>
#using <System.Design.dll>
#using <System.Windows.Forms.dll>

using namespace System;
using namespace System::Collections;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Diagnostics;
using namespace System::Drawing;
using namespace System::Drawing::Design;
using namespace System::Windows::Forms;
using namespace System::Windows::Forms::Design;

// This example contains an IRootDesigner that implements the IToolboxUser interface.
// This example demonstrates how to enable the GetToolSupported method of an IToolboxUser
// designer in order to disable specific toolbox items, and how to respond to the 
// invocation of a ToolboxItem in the ToolPicked method of an IToolboxUser implementation.
public ref class SampleRootDesigner;

// The following attribute associates the SampleRootDesigner with this example component.

[DesignerAttribute(__typeof(SampleRootDesigner),__typeof(IRootDesigner))]
public ref class RootDesignedComponent: public Control{};


// This example component class demonstrates the associated IRootDesigner which 
// implements the IToolboxUser interface. When designer view is invoked, Visual 
// Studio .NET attempts to display a design mode view for the class at the top 
// of a code file. This can sometimes fail when the class is one of multiple types 
// in a code file, and has a DesignerAttribute associating it with an IRootDesigner. 
// Placing a derived class at the top of the code file solves this problem. A 
// derived class is not typically needed for this reason, except that placing the 
// RootDesignedComponent class in another file is not a simple solution for a code 
// example that is packaged in one segment of code.
public ref class RootViewSampleComponent: public RootDesignedComponent{};


// This example IRootDesigner implements the IToolboxUser interface and provides a 
// Windows Forms view technology view for its associated component using an internal 
// Control type.     
// The following ToolboxItemFilterAttribute enables the GetToolSupported method of this
// IToolboxUser designer to be queried to check for whether to enable or disable all 
// ToolboxItems which create any components whose type name begins with "System.Windows.Forms".

[ToolboxItemFilterAttribute(S"System.Windows.Forms",ToolboxItemFilterType::Custom)]
public ref class SampleRootDesigner: public ParentControlDesigner, public IRootDesigner, public IToolboxUser
{
public private:
   ref class RootDesignerView;

private:

   // This field is a custom Control type named RootDesignerView. This field references
   // a control that is shown in the design mode document window.
   RootDesignerView^ view;

   // This string array contains type names of components that should not be added to 
   // the component managed by this designer from the Toolbox.  Any ToolboxItems whose 
   // type name matches a type name in this array will be marked disabled according to  
   // the signal returned by the IToolboxUser.GetToolSupported method of this designer.
   array<String^>^blockedTypeNames;

public:
   SampleRootDesigner()
   {
      array<String^>^tempTypeNames = {"System.Windows.Forms.ListBox","System.Windows.Forms.GroupBox"};
      blockedTypeNames = tempTypeNames;
   }


private:

   property array<ViewTechnology>^ SupportedTechnologies 
   {

      // IRootDesigner.SupportedTechnologies is a required override for an IRootDesigner.
      // This designer provides a display using the Windows Forms view technology.
      array<ViewTechnology>^ IRootDesigner::get()
      {
         ViewTechnology temp0[] = {ViewTechnology::WindowsForms};
         return temp0;
      }

   }

   // This method returns an object that provides the view for this root designer. 
   Object^ IRootDesigner::GetView( ViewTechnology technology )
   {
      
      // If the design environment requests a view technology other than Windows 
      // Forms, this method throws an Argument Exception.
      if ( technology != ViewTechnology::WindowsForms )
            throw gcnew ArgumentException( "An unsupported view technology was requested","Unsupported view technology." );

      
      // Creates the view object if it has not yet been initialized.
      if ( view == nullptr )
            view = gcnew RootDesignerView( this );

      return view;
   }


   // This method can signal whether to enable or disable the specified
   // ToolboxItem when the component associated with this designer is selected.
   bool IToolboxUser::GetToolSupported( ToolboxItem^ tool )
   {
      
      // Search the blocked type names array for the type name of the tool
      // for which support for is being tested. Return false to indicate the
      // tool should be disabled when the associated component is selected.
      for ( int i = 0; i < blockedTypeNames->Length; i++ )
         if ( tool->TypeName == blockedTypeNames[ i ] )
                  return false;

      
      // Return true to indicate support for the tool, if the type name of the
      // tool is not located in the blockedTypeNames string array.
      return true;
   }


   // This method can perform behavior when the specified tool has been invoked.
   // Invocation of a ToolboxItem typically creates a component or components, 
   // and adds any created components to the associated component.
   void IToolboxUser::ToolPicked( ToolboxItem^ /*tool*/ ){}


public private:

   // This control provides a Windows Forms view technology view object that 
   // provides a display for the SampleRootDesigner.

   [DesignerAttribute(__typeof(ParentControlDesigner),__typeof(IDesigner))]
   ref class RootDesignerView: public Control
   {
   private:

      // This field stores a reference to a designer.
      IDesigner^ m_designer;

   public:
      RootDesignerView( IDesigner^ designer )
      {
         
         // Perform basic control initialization.
         m_designer = designer;
         BackColor = Color::Blue;
         Font = gcnew System::Drawing::Font( Font->FontFamily->Name,24.0f );
      }


   protected:

      // This method is called to draw the view for the SampleRootDesigner.
      void OnPaint( PaintEventArgs^ pe )
      {
         Control::OnPaint( pe );
         
         // Draw the name of the component in large letters.
         pe->Graphics->DrawString( m_designer->Component->Site->Name, Font, Brushes::Yellow, ClientRectangle );
      }

   };


};
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
using System.Windows.Forms.Design;

// This example contains an IRootDesigner that implements the IToolboxUser interface.
// This example demonstrates how to enable the GetToolSupported method of an IToolboxUser
// designer in order to disable specific toolbox items, and how to respond to the 
// invocation of a ToolboxItem in the ToolPicked method of an IToolboxUser implementation.
namespace IToolboxUserExample;

// This example component class demonstrates the associated IRootDesigner which 
// implements the IToolboxUser interface. When designer view is invoked, Visual 
// Studio .NET attempts to display a design mode view for the class at the top 
// of a code file. This can sometimes fail when the class is one of multiple types 
// in a code file, and has a DesignerAttribute associating it with an IRootDesigner. 
// Placing a derived class at the top of the code file solves this problem. A 
// derived class is not typically needed for this reason, except that placing the 
// RootDesignedComponent class in another file is not a simple solution for a code 
// example that is packaged in one segment of code.
public class RootViewSampleComponent : RootDesignedComponent;

// The following attribute associates the SampleRootDesigner with this example component.
[Designer(typeof(SampleRootDesigner), typeof(IRootDesigner))]
public class RootDesignedComponent : Control;

// This example IRootDesigner implements the IToolboxUser interface and provides a 
// Windows Forms view technology view for its associated component using an internal 
// Control type.     
// The following ToolboxItemFilterAttribute enables the GetToolSupported method of this
// IToolboxUser designer to be queried to check for whether to enable or disable all 
// ToolboxItems which create any components whose type name begins with "System.Windows.Forms".
[ToolboxItemFilter("System.Windows.Forms", ToolboxItemFilterType.Custom)]
public class SampleRootDesigner : ParentControlDesigner, IRootDesigner, IToolboxUser
{
    // This field is a custom Control type named RootDesignerView. This field references
    // a control that is shown in the design mode document window.
    RootDesignerView view;

    // This string array contains type names of components that should not be added to 
    // the component managed by this designer from the Toolbox.  Any ToolboxItems whose 
    // type name matches a type name in this array will be marked disabled according to  
    // the signal returned by the IToolboxUser.GetToolSupported method of this designer.
    readonly string[] blockedTypeNames =
    [
        "System.Windows.Forms.ListBox",
        "System.Windows.Forms.GroupBox"
    ];

    // IRootDesigner.SupportedTechnologies is a required override for an IRootDesigner.
    // This designer provides a display using the Windows Forms view technology.
    ViewTechnology[] IRootDesigner.SupportedTechnologies => [ViewTechnology.Default];

    // This method returns an object that provides the view for this root designer. 
    object IRootDesigner.GetView(ViewTechnology technology)
    {
        // If the design environment requests a view technology other than Windows 
        // Forms, this method throws an Argument Exception.
        if (technology != ViewTechnology.Default)
        {
            throw new ArgumentException("An unsupported view technology was requested",
            nameof(technology));
        }

        // Creates the view object if it has not yet been initialized.
        view ??= new RootDesignerView(this);

        return view;
    }

    // This method can signal whether to enable or disable the specified
    // ToolboxItem when the component associated with this designer is selected.
    bool IToolboxUser.GetToolSupported(ToolboxItem tool)
    {
        // Search the blocked type names array for the type name of the tool
        // for which support for is being tested. Return false to indicate the
        // tool should be disabled when the associated component is selected.
        for (int i = 0; i < blockedTypeNames.Length; i++)
        {
            if (tool.TypeName == blockedTypeNames[i])
            {
                return false;
            }
        }

        // Return true to indicate support for the tool, if the type name of the
        // tool is not located in the blockedTypeNames string array.
        return true;
    }

    // This method can perform behavior when the specified tool has been invoked.
    // Invocation of a ToolboxItem typically creates a component or components, 
    // and adds any created components to the associated component.
    void IToolboxUser.ToolPicked(ToolboxItem tool)
    {
    }

    // This control provides a Windows Forms view technology view object that 
    // provides a display for the SampleRootDesigner.
    [Designer(typeof(ParentControlDesigner), typeof(IDesigner))]
    internal class RootDesignerView : Control
    {
        // This field stores a reference to a designer.
        readonly IDesigner m_designer;

        public RootDesignerView(IDesigner designer)
        {
            // Perform basic control initialization.
            m_designer = designer;
            BackColor = Color.Blue;
            Font = new Font(Font.FontFamily.Name, 24.0f);
        }

        // This method is called to draw the view for the SampleRootDesigner.
        protected override void OnPaint(PaintEventArgs pe)
        {
            base.OnPaint(pe);
            // Draw the name of the component in large letters.
            pe.Graphics.DrawString(m_designer.Component.Site.Name, Font, Brushes.Yellow, ClientRectangle);
        }
    }
}
Imports System.Collections
Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Diagnostics
Imports System.Drawing
Imports System.Drawing.Design
Imports System.Windows.Forms
Imports System.Windows.Forms.Design

' This example contains an IRootDesigner that implements the IToolboxUser interface.
' This example demonstrates how to enable the GetToolSupported method of an IToolboxUser
' designer in order to disable specific toolbox items, and how to respond to the 
' invocation of a ToolboxItem in the ToolPicked method of an IToolboxUser implementation.
' This example component class demonstrates the associated IRootDesigner which 
' implements the IToolboxUser interface. When designer view is invoked, Visual 
' Studio .NET attempts to display a design mode view for the class at the top 
' of a code file. This can sometimes fail when the class is one of multiple types 
' in a code file, and has a DesignerAttribute associating it with an IRootDesigner. 
' Placing a derived class at the top of the code file solves this problem. A 
' derived class is not typically needed for this reason, except that placing the 
' RootDesignedComponent class in another file is not a simple solution for a code 
' example that is packaged in one segment of code.

Public Class RootViewSampleComponent
    Inherits RootDesignedComponent
End Class

' The following attribute associates the SampleRootDesigner with this example component.
<DesignerAttribute(GetType(SampleRootDesigner), GetType(IRootDesigner))> _
Public Class RootDesignedComponent
    Inherits System.Windows.Forms.Control
End Class

' This example IRootDesigner implements the IToolboxUser interface and provides a 
' Windows Forms view technology view for its associated component using an internal 
' Control type.     
' The following ToolboxItemFilterAttribute enables the GetToolSupported method of this
' IToolboxUser designer to be queried to check for whether to enable or disable all 
' ToolboxItems which create any components whose type name begins with "System.Windows.Forms".
<ToolboxItemFilterAttribute("System.Windows.Forms", ToolboxItemFilterType.Custom)> _
<System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _
Public Class SampleRootDesigner
    Inherits ParentControlDesigner
    Implements IRootDesigner, IToolboxUser

    ' Member field of custom type RootDesignerView, a control that is shown in the 
    ' design mode document window. This member is cached to reduce processing needed 
    ' to recreate the view control on each call to GetView().
    Private m_view As RootDesignerView

    ' This string array contains type names of components that should not be added to 
    ' the component managed by this designer from the Toolbox.  Any ToolboxItems whose 
    ' type name matches a type name in this array will be marked disabled according to  
    ' the signal returned by the IToolboxUser.GetToolSupported method of this designer.
    Private blockedTypeNames As String() = {"System.Windows.Forms.ListBox", "System.Windows.Forms.GroupBox"}

    ' IRootDesigner.SupportedTechnologies is a required override for an IRootDesigner.
    ' This designer provides a display using the Windows Forms view technology.
    ReadOnly Property SupportedTechnologies() As ViewTechnology() Implements IRootDesigner.SupportedTechnologies
        Get
            Return New ViewTechnology() {ViewTechnology.Default}
        End Get
    End Property

    ' This method returns an object that provides the view for this root designer. 
    Function GetView(ByVal technology As ViewTechnology) As Object Implements IRootDesigner.GetView
        ' If the design environment requests a view technology other than Windows 
        ' Forms, this method throws an Argument Exception.
        If technology <> ViewTechnology.Default Then
            Throw New ArgumentException("An unsupported view technology was requested", "Unsupported view technology.")
        End If

        ' Creates the view object if it has not yet been initialized.
        If m_view Is Nothing Then
            m_view = New RootDesignerView(Me)
        End If
        Return m_view
    End Function

    ' This method can signal whether to enable or disable the specified
    ' ToolboxItem when the component associated with this designer is selected.
    Function GetToolSupported(ByVal tool As ToolboxItem) As Boolean Implements IToolboxUser.GetToolSupported
        ' Search the blocked type names array for the type name of the tool
        ' for which support for is being tested. Return false to indicate the
        ' tool should be disabled when the associated component is selected.
        Dim i As Integer
        For i = 0 To blockedTypeNames.Length - 1
            If tool.TypeName = blockedTypeNames(i) Then
                Return False
            End If
        Next i ' Return true to indicate support for the tool, if the type name of the
        ' tool is not located in the blockedTypeNames string array.
        Return True
    End Function

    ' This method can perform behavior when the specified tool has been invoked.
    ' Invocation of a ToolboxItem typically creates a component or components, 
    ' and adds any created components to the associated component.
    Sub ToolPicked(ByVal tool As ToolboxItem) Implements IToolboxUser.ToolPicked
    End Sub

    ' This control provides a Windows Forms view technology view object that 
    ' provides a display for the SampleRootDesigner.
    <DesignerAttribute(GetType(ParentControlDesigner), GetType(IDesigner))> _
    Friend Class RootDesignerView
        Inherits Control
        ' This field stores a reference to a designer.
        Private m_designer As IDesigner

        Public Sub New(ByVal designer As IDesigner)
            ' Performs basic control initialization.
            m_designer = designer
            BackColor = Color.Blue
            Font = New Font(Font.FontFamily.Name, 24.0F)
        End Sub

        ' This method is called to draw the view for the SampleRootDesigner.
        Protected Overrides Sub OnPaint(ByVal pe As PaintEventArgs)
            MyBase.OnPaint(pe)
            ' Draws the name of the component in large letters.
            pe.Graphics.DrawString(m_designer.Component.Site.Name, Font, Brushes.Yellow, New RectangleF(ClientRectangle.X, ClientRectangle.Y, ClientRectangle.Width, ClientRectangle.Height))
        End Sub
    End Class
End Class

Observações

ParentControlDesigner fornece uma classe base para projetistas de controlos que podem conter controlos filhos. Para além dos métodos e funcionalidades herdados das ControlDesigner classes e, ComponentDesignerParentControlDesigner permite que os controlos filhos sejam adicionados, removidos, selecionados dentro e organizados dentro do controlo cujo comportamento estende no momento do design.

Pode associar um designer a um tipo usando um DesignerAttribute. Para uma visão geral do comportamento de personalização do tempo de projeto, consulte Extensão Design-Time Suporte.

Construtores

Name Description
ParentControlDesigner()

Inicializa uma nova instância da ParentControlDesigner classe.

Campos

Name Description
accessibilityObj

Especifica o objeto de acessibilidade para o designer.

(Herdado de ControlDesigner)

Propriedades

Name Description
AccessibilityObject

Recebe a AccessibleObject atribuição ao controlo.

(Herdado de ControlDesigner)
ActionLists

Recebe as listas de ações em tempo de design suportadas pelo componente associado ao projetista.

(Herdado de ComponentDesigner)
AllowControlLasso

Recebe um valor que indica se os controlos selecionados serão re-parentados.

AllowGenericDragBox

Recebe um valor que indica se deve ser desenhada uma caixa de arrasto genérica ao arrastar um item da caixa de ferramentas sobre a superfície do designer.

AllowSetChildIndexOnDrop

Obtém um valor que indica se a ordem z dos controlos arrastados deve ser mantida quando dropada num ParentControlDesigner.

AssociatedComponents

Obtém a coleção de componentes associados ao componente gerida pelo designer.

(Herdado de ControlDesigner)
AutoResizeHandles

Obtém ou define um valor que indica se a alocação da alça de redimensionamento depende do valor da AutoSize propriedade.

(Herdado de ControlDesigner)
BehaviorService

Obtém-nos BehaviorService do ambiente de design.

(Herdado de ControlDesigner)
Component

Recebe o componente que este designer está a desenhar.

(Herdado de ComponentDesigner)
Control

Fica com o controlo que o designer está a desenhar.

(Herdado de ControlDesigner)
DefaultControlLocation

Adiciona a localização padrão de um controlo ao designer.

DrawGrid

Recebe ou define um valor que indica se uma grelha deve ser desenhada no controlo para este projetista.

EnableDragRect

Recebe um valor que indica se os retângulos de arrasto foram desenhados pelo projetista.

GridSize

Obtém ou define o tamanho de cada quadrado da grelha desenhada quando o designer está em modo de desenho da grelha.

InheritanceAttribute

Fica com InheritanceAttribute o designer.

(Herdado de ControlDesigner)
Inherited

Recebe um valor que indica se este componente é herdado.

(Herdado de ComponentDesigner)
MouseDragTool

Recebe um valor que indica se o projetista tem uma ferramenta válida durante uma operação de arrasto.

ParentComponent

Obtém o componente pai para o ControlDesigner.

(Herdado de ControlDesigner)
ParticipatesWithSnapLines

Recebe um valor que indica se permitirá ControlDesigner alinhamento snapline durante uma operação de arrasto.

(Herdado de ControlDesigner)
SelectionRules

Obtém as regras de seleção que indicam as capacidades de movimento de um componente.

(Herdado de ControlDesigner)
ShadowProperties

Obtém uma coleção de valores de propriedades que sobrepõem as definições do utilizador.

(Herdado de ComponentDesigner)
SnapLines

Obtém uma lista de SnapLine objetos que representam pontos de alinhamento significativos para este controlo.

Verbs

Obtém os verbos em tempo de design suportados pelo componente associado ao designer.

(Herdado de ComponentDesigner)

Métodos

Name Description
AddPaddingSnapLines(ArrayList)

Adiciona enchimentos para snaplines.

BaseWndProc(Message)

Processa mensagens do Windows.

(Herdado de ControlDesigner)
CanAddComponent(IComponent)

Chamada quando um componente é adicionado ao contentor pai.

CanBeParentedTo(IDesigner)

Indica se o controlo deste designer pode ser parentado pelo controlo do designer especificado.

(Herdado de ControlDesigner)
CanParent(Control)

Indica se o controlo especificado pode ser filho do controlo gerido por este designer.

CanParent(ControlDesigner)

Indica se o controlo gerido pelo projetista especificado pode ser filho do controlo gerido por este designer.

CreateTool(ToolboxItem, Point)

Cria um componente ou controlo a partir da ferramenta especificada e adiciona-o ao documento de design atual na localização especificada.

CreateTool(ToolboxItem, Rectangle)

Cria um componente ou controlo a partir da ferramenta especificada e adiciona-o ao documento de design atual dentro dos limites do retângulo especificado.

CreateTool(ToolboxItem)

Cria um componente ou controlo a partir da ferramenta especificada e adiciona-o ao documento de design atual.

CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean)

Fornece funcionalidades essenciais para todos os CreateTool(ToolboxItem) métodos.

DefWndProc(Message)

Fornece processamento padrão para mensagens do Windows.

(Herdado de ControlDesigner)
DisplayError(Exception)

Apresenta informações sobre a exceção especificada ao utilizador.

(Herdado de ControlDesigner)
Dispose()

Liberta todos os recursos utilizados pelo ComponentDesigner.

(Herdado de ComponentDesigner)
Dispose(Boolean)

Liberta os recursos não geridos usados pelo ParentControlDesigner, e opcionalmente liberta os recursos geridos.

DoDefaultAction()

Cria uma assinatura de método no ficheiro de código-fonte para o evento predefinido no componente e navega pelo cursor do utilizador até essa localização.

(Herdado de ComponentDesigner)
EnableDesignMode(Control, String)

Permite a funcionalidade de tempo de design para um controlo de criança.

(Herdado de ControlDesigner)
EnableDragDrop(Boolean)

Ativa ou desativa o suporte de arrastar e largar para o controlo a ser projetado.

(Herdado de ControlDesigner)
Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.

(Herdado de Object)
GetControl(Object)

Obtém o controlo do projetista do componente especificado.

GetControlGlyph(GlyphSelectionType)

Obtém um glifo do corpo que representa os limites do controlo.

GetGlyphs(GlyphSelectionType)

Obtém uma coleção de Glyph objetos que representam as bordas de seleção e os agarradores para um controlo padrão.

GetHashCode()

Serve como função de hash predefinida.

(Herdado de Object)
GetHitTest(Point)

Indica se um clique do rato no ponto especificado deve ser controlado pelo controlo.

(Herdado de ControlDesigner)
GetParentForComponent(IComponent)

Usado derivando classes para determinar se devolve o controlo que está a ser projetado ou outro Container enquanto lhe adiciona um componente.

GetService(Type)

Tenta recuperar o tipo de serviço especificado a partir do local do modo de design do componente do projetista.

(Herdado de ComponentDesigner)
GetType()

Obtém o Type da instância atual.

(Herdado de Object)
GetUpdatedRect(Rectangle, Rectangle, Boolean)

Atualiza a posição do retângulo especificado, ajustando-o para alinhamento da grelha se o modo de alinhamento estiver ativado.

HookChildControls(Control)

Encaminha mensagens dos controlos filhos do controlo especificado para o projetista.

(Herdado de ControlDesigner)
Initialize(IComponent)

Inicializa o designer com o componente especificado.

InitializeExistingComponent(IDictionary)

Reinicializa um componente existente.

(Herdado de ControlDesigner)
InitializeNewComponent(IDictionary)

Inicializa um componente recém-criado.

InitializeNonDefault()

Inicializa propriedades do controlo a quaisquer valores não padrão.

(Herdado de ControlDesigner)
InternalControlDesigner(Int32)

Devolve o designer de controlo interno com o índice especificado no ControlDesigner.

(Herdado de ControlDesigner)
InvokeCreateTool(ParentControlDesigner, ToolboxItem)

Cria uma ferramenta a partir do especificado ToolboxItem.

InvokeGetInheritanceAttribute(ComponentDesigner)

Obtém o InheritanceAttribute do especificado ComponentDesigner.

(Herdado de ComponentDesigner)
MemberwiseClone()

Cria uma cópia superficial do atual Object.

(Herdado de Object)
NumberOfInternalControlDesigners()

Devolve o número de projetistas de controlo interno no ControlDesigner.

(Herdado de ControlDesigner)
OnContextMenu(Int32, Int32)

Mostra o menu de contexto e oferece uma oportunidade para realizar processamento adicional quando o menu de contexto está prestes a ser exibido.

(Herdado de ControlDesigner)
OnCreateHandle()

Proporciona a oportunidade de realizar processamento adicional imediatamente após a criação da alavanca de controlo.

(Herdado de ControlDesigner)
OnDragComplete(DragEventArgs)

Liguei para limpar uma operação de arrastar e largar.

OnDragDrop(DragEventArgs)

Chamada quando um objeto de arrastar e largar é colocado na vista do designer de controlo.

OnDragEnter(DragEventArgs)

Chamada quando uma operação de arrastar e largar entra na vista do designer de controlo.

OnDragLeave(EventArgs)

Chamado quando uma operação de arrastar e largar sai da vista do designer de controlos.

OnDragOver(DragEventArgs)

Chamada quando um objeto arrastado e largado é arrastado sobre a vista do designer de controlo.

OnGiveFeedback(GiveFeedbackEventArgs)

Chamado quando está em curso uma operação de arrastar e largar para fornecer pistas visuais com base na localização do rato enquanto uma operação de arrastar está em curso.

OnGiveFeedback(GiveFeedbackEventArgs)

Recebe uma chamada quando está em curso uma operação de arrastar e largar para fornecer pistas visuais com base na localização do rato enquanto uma operação de arrastar está em curso.

(Herdado de ControlDesigner)
OnMouseDragBegin(Int32, Int32)

Chamado em resposta ao botão esquerdo do rato ser pressionado e mantido enquanto estava sobre o componente.

OnMouseDragEnd(Boolean)

Chamado no final de uma operação de arrastar e largar para completar ou cancelar a operação.

OnMouseDragMove(Int32, Int32)

Exigia cada movimento do rato durante uma operação de arrastar e largar.

OnMouseEnter()

É chamado quando o rato entra no controlo pela primeira vez.

OnMouseEnter()

Recebe uma chamada quando o rato entra no controlo pela primeira vez.

(Herdado de ControlDesigner)
OnMouseHover()

Chamou depois do rato pairar sobre o controlo.

OnMouseHover()

Recebe uma chamada depois do rato pairar sobre o controlo.

(Herdado de ControlDesigner)
OnMouseLeave()

É chamado quando o rato entra no controlo pela primeira vez.

OnMouseLeave()

Recebe uma chamada quando o rato entra no controlo pela primeira vez.

(Herdado de ControlDesigner)
OnPaintAdornments(PaintEventArgs)

Chamado quando o controlo que o designer está a gerir pintou a sua superfície para que o designer possa pintar quaisquer adornos adicionais por cima do controlo.

OnSetComponentDefaults()
Obsoleto.

Chamada quando o designer é inicializado.

(Herdado de ControlDesigner)
OnSetCursor()

Oferece uma oportunidade para alterar o cursor atual do rato.

PostFilterAttributes(IDictionary)

Permite a um designer alterar ou remover itens do conjunto de atributos que expõe através de um TypeDescriptor.

(Herdado de ComponentDesigner)
PostFilterEvents(IDictionary)

Permite a um designer alterar ou remover itens do conjunto de eventos que expõe através de um TypeDescriptor.

(Herdado de ComponentDesigner)
PostFilterProperties(IDictionary)

Permite a um designer alterar ou remover itens do conjunto de propriedades que expõe através de um TypeDescriptor.

(Herdado de ComponentDesigner)
PreFilterAttributes(IDictionary)

Permite a um designer adicionar ao conjunto de atributos que expõe através de um TypeDescriptor.

(Herdado de ComponentDesigner)
PreFilterEvents(IDictionary)

Permite a um designer adicionar ao conjunto de eventos que expõe através de um TypeDescriptor.

(Herdado de ComponentDesigner)
PreFilterProperties(IDictionary)

Ajusta o conjunto de propriedades que o componente irá expor através de um TypeDescriptor.

RaiseComponentChanged(MemberDescriptor, Object, Object)

Notifica que IComponentChangeService este componente foi alterado.

(Herdado de ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

Notifica que IComponentChangeService este componente está prestes a ser alterado.

(Herdado de ComponentDesigner)
ToString()

Devolve uma cadeia que representa o objeto atual.

(Herdado de Object)
UnhookChildControls(Control)

Encaminha mensagens para os filhos do controlo especificado para cada controlo em vez de para um designer pai.

(Herdado de ControlDesigner)
WndProc(Message)

Processa mensagens do Windows.

WndProc(Message)

Processa mensagens do Windows e, opcionalmente, encaminha-as para o controlo.

(Herdado de ControlDesigner)

Implementações de Interface Explícita

Name Description
IDesignerFilter.PostFilterAttributes(IDictionary)

Para uma descrição deste elemento, veja o PostFilterAttributes(IDictionary) método.

(Herdado de ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

Para uma descrição deste elemento, veja o PostFilterEvents(IDictionary) método.

(Herdado de ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

Para uma descrição deste elemento, veja o PostFilterProperties(IDictionary) método.

(Herdado de ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

Para uma descrição deste elemento, veja o PreFilterAttributes(IDictionary) método.

(Herdado de ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

Para uma descrição deste elemento, veja o PreFilterEvents(IDictionary) método.

(Herdado de ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

Para uma descrição deste elemento, veja o PreFilterProperties(IDictionary) método.

(Herdado de ComponentDesigner)
ITreeDesigner.Children

Para uma descrição deste membro, veja a propriedade Children .

(Herdado de ComponentDesigner)
ITreeDesigner.Parent

Para uma descrição deste membro, veja a propriedade Parent .

(Herdado de ComponentDesigner)

Aplica-se a

Ver também