ComponentDocumentDesigner 类

定义

基本设计器类,用于扩展根设计文档中支持嵌套组件的设计模式行为。Base designer class for extending the design mode behavior of a root design document that supports nested components.

public ref class ComponentDocumentDesigner : System::ComponentModel::Design::ComponentDesigner, IDisposable, System::ComponentModel::Design::IRootDesigner, System::ComponentModel::Design::ITypeDescriptorFilterService, System::Drawing::Design::IToolboxUser
public class ComponentDocumentDesigner : System.ComponentModel.Design.ComponentDesigner, IDisposable, System.ComponentModel.Design.IRootDesigner, System.ComponentModel.Design.ITypeDescriptorFilterService, System.Drawing.Design.IToolboxUser
type ComponentDocumentDesigner = class
    inherit ComponentDesigner
    interface IRootDesigner
    interface IDesigner
    interface IDisposable
    interface IToolboxUser
    interface ITypeDescriptorFilterService
Public Class ComponentDocumentDesigner
Inherits ComponentDesigner
Implements IDisposable, IRootDesigner, IToolboxUser, ITypeDescriptorFilterService
继承
ComponentDocumentDesigner
实现

注解

ComponentDocumentDesigner 为支持嵌套组件的根设计文档的设计器提供基类。ComponentDocumentDesigner provides a base class for designers of root design documents that support nested components. 除了从 ComponentDesigner 类继承的方法和功能外,ComponentDocumentDesigner 还实现了 IRootDesigner 接口,为关联的组件和任何嵌套的组件提供根级别设计模式视图。In addition to the methods and functionality inherited from the ComponentDesigner class, ComponentDocumentDesigner implements the IRootDesigner interface to provide a root-level design mode view for the associated component, and any nested components.

备注

FormControl 的根级别设计模式视图通常由内置根设计器提供。The root-level design mode view for a Form or Control is typically provided by a built-in root designer. 若要在设计模式下提供其他类型的根组件的视图,需要自定义 IRootDesigner 实现。A custom IRootDesigner implementation is required to provide a view for other types of root components in design mode.

您可以使用 DesignerAttribute将设计器与类型相关联。You can associate a designer with a type using a DesignerAttribute. 有关自定义设计时行为的概述,请参阅扩展设计时支持For an overview of customizing design time behavior, see Extending Design-Time Support.

构造函数

ComponentDocumentDesigner()

初始化 ComponentDocumentDesigner 类的新实例。Initializes a new instance of the ComponentDocumentDesigner class.

属性

ActionLists

获取与设计器相关联的组件所支持的设计时操作列表。Gets the design-time action lists supported by the component associated with the designer.

(继承自 ComponentDesigner)
AssociatedComponents

获取与设计器所管理的组件关联的组件集合。Gets the collection of components associated with the component managed by the designer.

(继承自 ComponentDesigner)
Component

获取此设计器正在设计的组件。Gets the component this designer is designing.

(继承自 ComponentDesigner)
Control

为设计器获取控件。Gets the control for the designer.

InheritanceAttribute

获取一个特性,该特性指示关联组件的继承类型。Gets an attribute that indicates the type of inheritance of the associated component.

(继承自 ComponentDesigner)
Inherited

获取一个值,该值指示是否继承此组件。Gets a value indicating whether this component is inherited.

(继承自 ComponentDesigner)
ParentComponent

获取此设计器的父组件。Gets the parent component for this designer.

(继承自 ComponentDesigner)
ShadowProperties

获取重写用户设置的属性值的集合。Gets a collection of property values that override user settings.

(继承自 ComponentDesigner)
TrayAutoArrange

获取或设置一个值,该值指示设计器的组件栏是否处于自动排列模式。Gets or sets a value indicating whether the component tray for the designer is in auto-arrange mode.

TrayLargeIcon

获取或设置一个值,该值指示设计器的组件栏处是否处于大图标模式。Gets or sets a value indicating whether the component tray for the designer is in large icon mode.

Verbs

获取与设计器相关联的组件所支持的设计时谓词。Gets the design-time verbs supported by the component that is associated with the designer.

(继承自 ComponentDesigner)

方法

Dispose()

释放 ComponentDesigner 使用的所有资源。Releases all resources used by the ComponentDesigner.

(继承自 ComponentDesigner)
Dispose(Boolean)

释放 ComponentDocumentDesigner 使用的非托管资源,并选择性地释放托管资源。Releases the unmanaged resources used by the ComponentDocumentDesigner and optionally releases the managed resources.

DoDefaultAction()

在源代码文件中为组件的默认事件创建方法签名,并将用户的光标定位到该位置。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.

(继承自 ComponentDesigner)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetService(Type)

尝试从设计器组件的设计模式站点检索指定类型的服务。Attempts to retrieve the specified type of service from the design mode site of the designer's component.

(继承自 ComponentDesigner)
GetToolSupported(ToolboxItem)

获取一个值,该值指示设计器是否支持指定工具。Gets a value indicating whether the specified tool is supported by the designer.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Initialize(IComponent)

使用指定的组件初始化设计器。Initializes the designer with the specified component.

InitializeExistingComponent(IDictionary)

重新初始化现有组件。Reinitializes an existing component.

(继承自 ComponentDesigner)
InitializeNewComponent(IDictionary)

初始化新创建的组件。Initializes a newly created component.

(继承自 ComponentDesigner)
InitializeNonDefault()

对已初始化为非默认设置的导入组件的设置进行初始化。Initializes the settings for an imported component that is already initialized to settings other than the defaults.

(继承自 ComponentDesigner)
InvokeGetInheritanceAttribute(ComponentDesigner)

获取指定 InheritanceAttributeComponentDesignerGets the InheritanceAttribute of the specified ComponentDesigner.

(继承自 ComponentDesigner)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnSetComponentDefaults()

设置组件的默认属性。Sets the default properties for the component.

(继承自 ComponentDesigner)
PostFilterAttributes(IDictionary)

允许设计器从通过 TypeDescriptor 公开的特性集中更改或移除项。Allows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor.

(继承自 ComponentDesigner)
PostFilterEvents(IDictionary)

允许设计器从通过 TypeDescriptor 公开的事件集中更改或移除项。Allows a designer to change or remove items from the set of events that it exposes through a TypeDescriptor.

(继承自 ComponentDesigner)
PostFilterProperties(IDictionary)

允许设计器从通过 TypeDescriptor 公开的属性集中更改或移除项。Allows a designer to change or remove items from the set of properties that it exposes through a TypeDescriptor.

(继承自 ComponentDesigner)
PreFilterAttributes(IDictionary)

允许设计器在通过 TypeDescriptor 公开的特性集中添加项。Allows a designer to add to the set of attributes that it exposes through a TypeDescriptor.

(继承自 ComponentDesigner)
PreFilterEvents(IDictionary)

允许设计器在通过 TypeDescriptor 公开的事件集中添加项。Allows a designer to add to the set of events that it exposes through a TypeDescriptor.

(继承自 ComponentDesigner)
PreFilterProperties(IDictionary)

调整该组件将通过 TypeDescriptor 公开的属性集。Adjusts the set of properties the component will expose through a TypeDescriptor.

RaiseComponentChanged(MemberDescriptor, Object, Object)

通知 IComponentChangeService 此组件已被更改。Notifies the IComponentChangeService that this component has been changed.

(继承自 ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

通知 IComponentChangeService 此组件即将被更改。Notifies the IComponentChangeService that this component is about to be changed.

(继承自 ComponentDesigner)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IDesignerFilter.PostFilterAttributes(IDictionary)

有关此成员的说明,请参见 PostFilterAttributes(IDictionary) 方法。For a description of this member, see the PostFilterAttributes(IDictionary) method.

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

有关此成员的说明,请参见 PostFilterEvents(IDictionary) 方法。For a description of this member, see the PostFilterEvents(IDictionary) method.

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

有关此成员的说明,请参见 PostFilterProperties(IDictionary) 方法。For a description of this member, see the PostFilterProperties(IDictionary) method.

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

有关此成员的说明,请参见 PreFilterAttributes(IDictionary) 方法。For a description of this member, see the PreFilterAttributes(IDictionary) method.

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

有关此成员的说明,请参见 PreFilterEvents(IDictionary) 方法。For a description of this member, see the PreFilterEvents(IDictionary) method.

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

有关此成员的说明,请参见 PreFilterProperties(IDictionary) 方法。For a description of this member, see the PreFilterProperties(IDictionary) method.

(继承自 ComponentDesigner)
IRootDesigner.GetView(ViewTechnology)

有关此成员的说明,请参阅 ViewTechnologyFor a description of this member, see ViewTechnology.

IRootDesigner.SupportedTechnologies

有关此成员的说明,请参阅 SupportedTechnologiesFor a description of this member, see SupportedTechnologies.

IToolboxUser.GetToolSupported(ToolboxItem)

有关此成员的说明,请参阅 GetToolSupported(ToolboxItem)For a description of this member, see GetToolSupported(ToolboxItem).

IToolboxUser.ToolPicked(ToolboxItem)

有关此成员的说明,请参阅 ToolPicked(ToolboxItem)For a description of this member, see ToolPicked(ToolboxItem).

ITreeDesigner.Children

有关此成员的说明,请参见 Children 属性。For a description of this member, see the Children property.

(继承自 ComponentDesigner)
ITreeDesigner.Parent

有关此成员的说明,请参见 Parent 属性。For a description of this member, see the Parent property.

(继承自 ComponentDesigner)
ITypeDescriptorFilterService.FilterAttributes(IComponent, IDictionary)

有关此成员的说明,请参阅 FilterAttributes(IComponent, IDictionary)For a description of this member, see FilterAttributes(IComponent, IDictionary).

ITypeDescriptorFilterService.FilterEvents(IComponent, IDictionary)

有关此成员的说明,请参阅 FilterEvents(IComponent, IDictionary)For a description of this member, see FilterEvents(IComponent, IDictionary).

ITypeDescriptorFilterService.FilterProperties(IComponent, IDictionary)

有关此成员的说明,请参阅 FilterProperties(IComponent, IDictionary)For a description of this member, see FilterProperties(IComponent, IDictionary).

适用于

另请参阅