ComponentDocumentDesigner ComponentDocumentDesigner ComponentDocumentDesigner ComponentDocumentDesigner Class

定義

設計工具基底類別,延伸支援巢狀元件之根設計文件的設計模式行為。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
繼承
ComponentDocumentDesignerComponentDocumentDesignerComponentDocumentDesignerComponentDocumentDesigner
實作

備註

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.

您可以將設計工具與型別,使用DesignerAttributeYou 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() ComponentDocumentDesigner() ComponentDocumentDesigner()

初始化 ComponentDocumentDesigner 類別的新執行個體。Initializes a new instance of the ComponentDocumentDesigner class.

屬性

ActionLists ActionLists ActionLists ActionLists

取得與設計工具相關之元件所支援的設計階段動作清單。Gets the design-time action lists supported by the component associated with the designer.

(Inherited from ComponentDesigner)
AssociatedComponents AssociatedComponents AssociatedComponents AssociatedComponents

取得元件集合,該集合與設計工具管理的元件相關聯。Gets the collection of components associated with the component managed by the designer.

(Inherited from ComponentDesigner)
Component Component Component Component

取得這個設計工具正在設計的元件。Gets the component this designer is designing.

(Inherited from ComponentDesigner)
Control Control Control Control

取得設計工具的控制項。Gets the control for the designer.

InheritanceAttribute InheritanceAttribute InheritanceAttribute InheritanceAttribute

取得屬性 (Attribute),表示相關元件的繼承 (Inheritance) 型別。Gets an attribute that indicates the type of inheritance of the associated component.

(Inherited from ComponentDesigner)
Inherited Inherited Inherited Inherited

取得值,表示是否要繼承這個元件。Gets a value indicating whether this component is inherited.

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

如需這個成員的描述,請參閱 Children 屬性。For a description of this member, see the Children property.

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

如需這個成員的描述,請參閱 Parent 屬性。For a description of this member, see the Parent property.

(Inherited from ComponentDesigner)
ParentComponent ParentComponent ParentComponent ParentComponent

取得這個設計工具的父元件。Gets the parent component for this designer.

(Inherited from ComponentDesigner)
ShadowProperties ShadowProperties ShadowProperties ShadowProperties

取得覆寫使用者設定的屬性值集合。Gets a collection of property values that override user settings.

(Inherited from ComponentDesigner)
TrayAutoArrange TrayAutoArrange TrayAutoArrange TrayAutoArrange

取得或設定一個數值,指出設計工具的元件匣是否為自動排列模式。Gets or sets a value indicating whether the component tray for the designer is in auto-arrange mode.

TrayLargeIcon TrayLargeIcon TrayLargeIcon TrayLargeIcon

取得或設定一個數值,指出設計工具的元件匣是否為大圖示模式。Gets or sets a value indicating whether the component tray for the designer is in large icon mode.

Verbs Verbs Verbs Verbs

取得與設計工具相關元件所支援的設計階段動詞命令 (Verb)。Gets the design-time verbs supported by the component that is associated with the designer.

(Inherited from ComponentDesigner)

方法

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

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

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

釋放 ComponentDocumentDesigner 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the ComponentDocumentDesigner and optionally releases the managed resources.

DoDefaultAction() DoDefaultAction() DoDefaultAction() 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.

(Inherited from ComponentDesigner)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

嘗試從設計工具元件的設計模式站台擷取指定的服務類型。Attempts to retrieve the specified type of service from the design mode site of the designer's component.

(Inherited from ComponentDesigner)
GetToolSupported(ToolboxItem) GetToolSupported(ToolboxItem) GetToolSupported(ToolboxItem) GetToolSupported(ToolboxItem)

取得值,指出設計工具是否支援指定的工具。Gets a value indicating whether the specified tool is supported by the designer.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
Initialize(IComponent) Initialize(IComponent) Initialize(IComponent) Initialize(IComponent)

使用指定的元件,初始化設計工具。Initializes the designer with the specified component.

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

重新初始化現有的元件。Reinitializes an existing component.

(Inherited from ComponentDesigner)
InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary)

初始化新建立的元件。Initializes a newly created component.

(Inherited from ComponentDesigner)
InitializeNonDefault() InitializeNonDefault() InitializeNonDefault() InitializeNonDefault()

初始化已初始化為預設值以外設定的匯入元件設定。Initializes the settings for an imported component that is already initialized to settings other than the defaults.

(Inherited from ComponentDesigner)
InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner)

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

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

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnSetComponentDefaults() OnSetComponentDefaults() OnSetComponentDefaults() OnSetComponentDefaults()

設定元件的預設屬性。Sets the default properties for the component.

(Inherited from ComponentDesigner)
PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary)

允許設計工具變更或移除它經由 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)

允許設計工具變更或移除它經由 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)

允許設計工具變更或移除它經由 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)

允許設計工具加入至它經由 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)

允許設計工具加入至它經由 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)

調整元件透過 TypeDescriptor 公開的屬性集。Adjusts the set of properties the component will expose through a TypeDescriptor.

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

告知 IComponentChangeService 這個元件已經變更。Notifies the IComponentChangeService that this component has been changed.

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

告知 IComponentChangeService 這個元件正要變更。Notifies the IComponentChangeService that this component is about to be changed.

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

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

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

如需這個成員的描述,請參閱 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)

如需這個成員的描述,請參閱 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)

如需這個成員的描述,請參閱 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)

如需這個成員的描述,請參閱 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)

如需這個成員的描述,請參閱 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)

如需這個成員的描述,請參閱 PreFilterProperties(IDictionary) 方法。For a description of this member, see the PreFilterProperties(IDictionary) method.

(Inherited from ComponentDesigner)
IRootDesigner.GetView(ViewTechnology) IRootDesigner.GetView(ViewTechnology) IRootDesigner.GetView(ViewTechnology) IRootDesigner.GetView(ViewTechnology)

如需這個成員的說明,請參閱 ViewTechnologyFor a description of this member, see ViewTechnology.

IRootDesigner.SupportedTechnologies IRootDesigner.SupportedTechnologies IRootDesigner.SupportedTechnologies IRootDesigner.SupportedTechnologies

如需這個成員的說明,請參閱 SupportedTechnologiesFor a description of this member, see SupportedTechnologies.

IToolboxUser.GetToolSupported(ToolboxItem) IToolboxUser.GetToolSupported(ToolboxItem) IToolboxUser.GetToolSupported(ToolboxItem) IToolboxUser.GetToolSupported(ToolboxItem)

如需這個成員的說明,請參閱 GetToolSupported(ToolboxItem)For a description of this member, see GetToolSupported(ToolboxItem).

IToolboxUser.ToolPicked(ToolboxItem) IToolboxUser.ToolPicked(ToolboxItem) IToolboxUser.ToolPicked(ToolboxItem) IToolboxUser.ToolPicked(ToolboxItem)

如需這個成員的說明,請參閱 ToolPicked(ToolboxItem)For a description of this member, see ToolPicked(ToolboxItem).

ITypeDescriptorFilterService.FilterAttributes(IComponent, IDictionary) ITypeDescriptorFilterService.FilterAttributes(IComponent, IDictionary) ITypeDescriptorFilterService.FilterAttributes(IComponent, IDictionary) ITypeDescriptorFilterService.FilterAttributes(IComponent, IDictionary)

如需這個成員的說明,請參閱 FilterAttributes(IComponent, IDictionary)For a description of this member, see FilterAttributes(IComponent, IDictionary).

ITypeDescriptorFilterService.FilterEvents(IComponent, IDictionary) ITypeDescriptorFilterService.FilterEvents(IComponent, IDictionary) ITypeDescriptorFilterService.FilterEvents(IComponent, IDictionary) ITypeDescriptorFilterService.FilterEvents(IComponent, IDictionary)

如需這個成員的說明,請參閱 FilterEvents(IComponent, IDictionary)For a description of this member, see FilterEvents(IComponent, IDictionary).

ITypeDescriptorFilterService.FilterProperties(IComponent, IDictionary) ITypeDescriptorFilterService.FilterProperties(IComponent, IDictionary) ITypeDescriptorFilterService.FilterProperties(IComponent, IDictionary) ITypeDescriptorFilterService.FilterProperties(IComponent, IDictionary)

如需這個成員的說明,請參閱 FilterProperties(IComponent, IDictionary)For a description of this member, see FilterProperties(IComponent, IDictionary).

適用於

另請參閱