通过


ParentControlDesigner 类

定义

扩展支持嵌套控件的设计模式行为 Control

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
继承
ParentControlDesigner
派生

示例

下面的示例演示如何实现自定义 ParentControlDesigner。 此代码示例是为接口提供的大型示例的 IToolboxUser 一部分。

#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

注解

ParentControlDesigner 为可包含子控件的控件设计器提供基类。 除了继承自 ControlDesignerComponentDesigner 类的方法和功能之外, ParentControlDesigner 还可以将子控件添加到、从控件中删除、从中选中并在控件内排列,其行为在设计时扩展。

可以使用 将设计器与类型 相关联。

构造函数

名称 说明
ParentControlDesigner()

初始化 ParentControlDesigner 类的新实例。

字段

名称 说明
accessibilityObj

指定设计器的辅助功能对象。

(继承自 ControlDesigner)

属性

名称 说明
AccessibilityObject

AccessibleObject获取分配给控件的控件。

(继承自 ControlDesigner)
ActionLists

获取与设计器关联的组件支持的设计时操作列表。

(继承自 ComponentDesigner)
AllowControlLasso

获取一个值,该值指示是否将重新设置所选控件的父级。

AllowGenericDragBox

获取一个值,该值指示在设计器图面上拖动工具箱项时是否应绘制泛型拖动框。

AllowSetChildIndexOnDrop

获取一个值,该值指示在拖放 ParentControlDesigner控件时是否应保留拖动控件的 z 顺序。

AssociatedComponents

获取与设计器管理的组件关联的组件的集合。

(继承自 ControlDesigner)
AutoResizeHandles

获取或设置一个值,该值指示重设大小句柄分配是否取决于属性的值 AutoSize

(继承自 ControlDesigner)
BehaviorService

BehaviorService从设计环境获取。

(继承自 ControlDesigner)
Component

获取此设计器正在设计的组件。

(继承自 ComponentDesigner)
Control

获取设计器正在设计的控件。

(继承自 ControlDesigner)
DefaultControlLocation

获取添加到设计器中的控件的默认位置。

DrawGrid

获取或设置一个值,该值指示是否应在此设计器的控件上绘制网格。

EnableDragRect

获取一个值,该值指示拖动矩形是否由设计器绘制。

GridSize

获取或设置设计器处于网格绘制模式时绘制的网格的每个平方的大小。

InheritanceAttribute

InheritanceAttribute获取设计器。

(继承自 ControlDesigner)
Inherited

获取一个值,该值指示是否继承此组件。

(继承自 ComponentDesigner)
MouseDragTool

获取一个值,该值指示设计器在拖动操作期间是否具有有效的工具。

ParentComponent

获取 . 的 ControlDesigner父组件。

(继承自 ControlDesigner)
ParticipatesWithSnapLines

获取一个值, ControlDesigner 该值指示拖动操作期间是否允许对齐线对齐。

(继承自 ControlDesigner)
SelectionRules

获取指示组件移动功能的选择规则。

(继承自 ControlDesigner)
SetTextualDefaultProperty

扩展支持嵌套控件的设计模式行为 Control

(继承自 ComponentDesigner)
ShadowProperties

获取替代用户设置的属性值的集合。

(继承自 ComponentDesigner)
SnapLines

获取表示此控件的重要对齐点的对象列表 SnapLine

Verbs

获取与设计器关联的组件支持的设计时谓词。

(继承自 ComponentDesigner)

方法

名称 说明
AddPaddingSnapLines(ArrayList)

添加填充对齐线。

BaseWndProc(Message)

处理Windows消息。

(继承自 ControlDesigner)
CanAddComponent(IComponent)

将组件添加到父容器时调用。

CanBeParentedTo(IDesigner)

指示此设计器的控件是否可以由指定设计器的控件进行父级。

(继承自 ControlDesigner)
CanParent(Control)

指示指定的控件是否可以是此设计器管理的控件的子级。

CanParent(ControlDesigner)

指示指定设计器管理的控件是否可以是此设计器管理的控件的子级。

CreateTool(ToolboxItem, Point)

从指定的工具创建组件或控件,并将其添加到指定位置的当前设计文档。

CreateTool(ToolboxItem, Rectangle)

从指定工具创建组件或控件,并将其添加到指定矩形边界内的当前设计文档。

CreateTool(ToolboxItem)

从指定的工具创建组件或控件,并将其添加到当前设计文档中。

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

为所有方法提供核心功能 CreateTool(ToolboxItem)

DefWndProc(Message)

为Windows消息提供默认处理。

(继承自 ControlDesigner)
DisplayError(Exception)

向用户显示有关指定异常的信息。

(继承自 ControlDesigner)
Dispose()

释放该 ComponentDesigner命令使用的所有资源。

(继承自 ComponentDesigner)
Dispose(Boolean)

释放由该资源使用 ParentControlDesigner的非托管资源,并选择性地释放托管资源。

DoDefaultAction()

在组件的源代码文件中为默认事件创建方法签名,并将用户的光标导航到该位置。

(继承自 ComponentDesigner)
EnableDesignMode(Control, String)

为子控件启用设计时功能。

(继承自 ControlDesigner)
EnableDragDrop(Boolean)

启用或禁用对所设计的控件的拖放支持。

(继承自 ControlDesigner)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetControl(Object)

从指定组件的设计器中获取控件。

GetControlGlyph(GlyphSelectionType)

获取表示控件边界的正文标志符号。

GetGlyphs(GlyphSelectionType)

获取表示标准控件的选择边框和抓取手柄的对象集合 Glyph

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetHitTest(Point)

指示控件是否应处理指定点处的鼠标单击。

(继承自 ControlDesigner)
GetParentForComponent(IComponent)

派生类用于确定它是否返回正在设计的控件或其他控件 Container ,同时向其添加组件。

GetService(Type)

尝试从设计器组件的设计模式站点检索指定的服务类型。

(继承自 ComponentDesigner)
GetType()

获取当前实例的 Type

(继承自 Object)
GetUpdatedRect(Rectangle, Rectangle, Boolean)

更新指定矩形的位置,在启用网格对齐模式时调整其网格对齐方式。

HookChildControls(Control)

将消息从指定控件的子控件路由到设计器。

(继承自 ControlDesigner)
Initialize(IComponent)

使用指定的组件初始化设计器。

InitializeExistingComponent(IDictionary)

重新初始化现有组件。

(继承自 ControlDesigner)
InitializeNewComponent(IDictionary)

初始化新创建的组件。

InitializeNonDefault()

将控件的属性初始化为任何非默认值。

(继承自 ControlDesigner)
InternalControlDesigner(Int32)

返回具有指定索引的内部 ControlDesigner控件设计器。

(继承自 ControlDesigner)
InvokeCreateTool(ParentControlDesigner, ToolboxItem)

从指定的 ToolboxItem.

InvokeGetInheritanceAttribute(ComponentDesigner)

InheritanceAttribute获取指定的 ComponentDesigner

(继承自 ComponentDesigner)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
NumberOfInternalControlDesigners()

返回内部控件设计器的数目 ControlDesigner

(继承自 ControlDesigner)
OnContextMenu(Int32, Int32)

显示上下文菜单,并提供在上下文菜单即将显示时执行其他处理的机会。

(继承自 ControlDesigner)
OnCreateHandle()

提供在创建控制句柄后立即执行其他处理的机会。

(继承自 ControlDesigner)
OnDragComplete(DragEventArgs)

调用以清理拖放操作。

OnDragDrop(DragEventArgs)

当拖放对象放置到控件设计器视图中时调用。

OnDragEnter(DragEventArgs)

当拖放操作进入控件设计器视图时调用。

OnDragLeave(EventArgs)

当拖放操作离开控件设计器视图时调用。

OnDragOver(DragEventArgs)

当拖放对象拖动到控件设计器视图上时调用。

OnGiveFeedback(GiveFeedbackEventArgs)

当拖放操作正在进行时调用,以便根据鼠标的位置提供视觉提示,而拖动操作正在进行中。

OnGiveFeedback(GiveFeedbackEventArgs)

当拖放操作正在进行时接收调用,以便根据鼠标的位置在拖动操作正在进行时提供视觉提示。

(继承自 ControlDesigner)
OnMouseDragBegin(Int32, Int32)

调用以响应在组件上按下和按住的鼠标左键。

OnMouseDragEnd(Boolean)

在拖放操作结束时调用以完成或取消操作。

OnMouseDragMove(Int32, Int32)

在拖放操作期间调用鼠标的每个移动。

OnMouseEnter()

当鼠标首次进入控件时调用。

OnMouseEnter()

当鼠标首次进入控件时接收呼叫。

(继承自 ControlDesigner)
OnMouseHover()

在鼠标悬停在控件上后调用。

OnMouseHover()

在鼠标悬停在控件上后接收调用。

(继承自 ControlDesigner)
OnMouseLeave()

当鼠标首次进入控件时调用。

OnMouseLeave()

当鼠标首次进入控件时接收呼叫。

(继承自 ControlDesigner)
OnPaintAdornments(PaintEventArgs)

当设计器所管理的控件绘制其图面时调用,以便设计器可以在控件顶部绘制任何其他装饰。

OnSetComponentDefaults()
已过时.
已过时.

初始化设计器时调用。

(继承自 ControlDesigner)
OnSetCursor()

提供更改当前鼠标光标的机会。

PostFilterAttributes(IDictionary)

允许设计器从它通过 a TypeDescriptor. 公开的属性集中更改或删除项。

(继承自 ComponentDesigner)
PostFilterEvents(IDictionary)

允许设计器从它通过 a TypeDescriptor. 公开的事件集中更改或删除项。

(继承自 ComponentDesigner)
PostFilterProperties(IDictionary)

允许设计器从它通过 a TypeDescriptor. 公开的属性集中更改或删除项。

(继承自 ComponentDesigner)
PreFilterAttributes(IDictionary)

允许设计器添加到它通过 a TypeDescriptor. 公开的属性集。

(继承自 ComponentDesigner)
PreFilterEvents(IDictionary)

允许设计器添加到它通过 a TypeDescriptor. 公开的事件集。

(继承自 ComponentDesigner)
PreFilterProperties(IDictionary)

调整组件将通过 a TypeDescriptor. 公开的属性集。

RaiseComponentChanged(MemberDescriptor, Object, Object)

通知 IComponentChangeService 此组件已更改。

(继承自 ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

通知 IComponentChangeService 此组件即将更改。

(继承自 ComponentDesigner)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
UnhookChildControls(Control)

将指定控件的子级的消息路由到每个控件而不是父设计器。

(继承自 ControlDesigner)
WndProc(Message)

处理Windows消息。

WndProc(Message)

处理Windows消息,并选择性地将其路由到控件。

(继承自 ControlDesigner)

显式接口实现

名称 说明
IDesignerFilter.PostFilterAttributes(IDictionary)

有关此成员的说明,请参阅 PostFilterAttributes(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

有关此成员的说明,请参阅 PostFilterEvents(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

有关此成员的说明,请参阅 PostFilterProperties(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

有关此成员的说明,请参阅 PreFilterAttributes(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

有关此成员的说明,请参阅 PreFilterEvents(IDictionary) 方法。

(继承自 ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

有关此成员的说明,请参阅 PreFilterProperties(IDictionary) 方法。

(继承自 ComponentDesigner)
ITreeDesigner.Children

有关此成员的说明,请参阅 Children 该属性。

(继承自 ComponentDesigner)
ITreeDesigner.Parent

有关此成员的说明,请参阅 Parent 该属性。

(继承自 ComponentDesigner)

适用于

另请参阅