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

取得屬性 (Attribute),表示相關元件的繼承 (Inheritance) 型別。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

取得與設計工具相關元件所支援的設計階段動詞命令 (Verb)。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 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。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 的淺層複本 (Shallow Copy)。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()

傳回代表目前物件的字串。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).

適用於

另請參閱