System.ComponentModel.Design 命名空間

System.ComponentModel.Design 命名空間 (Namespace) 包含的類別,可供開發人員用來建置 (Build) 元件的自訂設計階段行為以及在設計階段設定元件的使用者介面。 The System.ComponentModel.Design namespace contains classes that developers can use to build custom design-time behavior for components and user interfaces for configuring components at design time. 開發人員可以透過設計階段環境所提供的系統,排列元件並設定元件的屬性。 The design time environment provides systems that enable developers to arrange components and configure their properties. 有些元件可能需要僅適用設計階段的特定行為,才能在設計階段環境中正常運作。 Some components may require specific design-time only behavior to function properly in a design time environment. 提供協助開發人員設定元件或複雜資料型別值的自訂使用者介面可能也頗有價值。 It may also be valuable to provide custom user interfaces which assist developers in configuring components or the values of complex data types. 在此命名空間內定義的類別和介面,也可以用來建置元件的自訂設計階段行為、存取設計階段服務以及實作自訂的設計階段組態介面。 The classes and interfaces defined within this namespace can be used to build design-time behavior for components, access design-time services, and implement customized design-time configuration interfaces.

類別

ActiveDesignerEventArgs

提供 ActiveDesigner 事件的資料。Provides data for the ActiveDesigner event.

ActiveDesignSurfaceChangedEventArgs

提供 ActiveDesignSurfaceChanged 事件的資料。Provides data for the ActiveDesignSurfaceChanged event.

ArrayEditor

提供設計階段編輯陣列的使用者介面。Provides a user interface for editing arrays at design time.

BinaryEditor

提供使用者介面以編輯二進位資料。Provides a user interface for editing binary data.

ByteViewer

以十六進位、ANSI 和 Unicode 格式顯示位元組陣列。Displays byte arrays in hexadecimal, ANSI, and Unicode formats.

CheckoutException

嘗試簽出已簽入來源程式碼管理程式之檔案的動作遭取消或失敗時所擲回的例外狀況。The exception that is thrown when an attempt to check out a file that is checked into a source code management program is canceled or fails.

CollectionEditor

提供可在設計階段編輯大部分集合型別的使用者介面。Provides a user interface that can edit most types of collections at design time.

CollectionEditor.CollectionForm

使用 UITypeEditor,提供編輯集合內容之用的強制回應對話方塊 (Modal Dialog Box)。Provides a modal dialog box for editing the contents of a collection using a UITypeEditor.

CommandID

表示由數值命令 ID 和 GUID 功能表群組識別項所組成的唯一命令識別項 (Command Identifier)。Represents a unique command identifier that consists of a numeric command ID and a GUID menu group identifier.

ComponentChangedEventArgs

提供 ComponentChanged 事件的資料。Provides data for the ComponentChanged event. 這個類別無法被繼承。This class cannot be inherited.

ComponentChangingEventArgs

提供 ComponentChanging 事件的資料。Provides data for the ComponentChanging event. 這個類別無法被繼承。This class cannot be inherited.

ComponentDesigner

擴充元件的設計模式行為。Extends the design mode behavior of a component.

ComponentDesigner.ShadowPropertyCollection

表示應該覆寫指定屬性的繼承預設值或指派值的遮蔽屬性集合。Represents a collection of shadow properties that should override inherited default or assigned values for specific properties. 這個類別無法被繼承。This class cannot be inherited.

ComponentEventArgs

提供 ComponentAddedComponentAddingComponentRemovedComponentRemoving 事件的資料。Provides data for the ComponentAdded, ComponentAdding, ComponentRemoved, and ComponentRemoving events.

ComponentRenameEventArgs

提供 ComponentRename 事件的資料。Provides data for the ComponentRename event.

DateTimeEditor

這個日期時間編輯器是一個 UITypeEditor,適合用來視覺化編輯 DateTime 物件。This date time editor is a UITypeEditor suitable for visually editing DateTime objects.

DesignerActionHeaderItem

表示智慧標籤面板上的靜態標題項目。Represents a static header item on a smart tag panel. 這個類別無法被繼承。This class cannot be inherited.

DesignerActionItem

為在智慧標籤面板上表示面板項目的型別提供基底類別。Provides the base class for types that represent a panel item on a smart tag panel.

DesignerActionItemCollection

表示 DesignerActionItem 物件的集合。Represents a collection of DesignerActionItem objects.

DesignerActionList

提供型別的基底類別,該型別定義用於建立智慧標籤面板的項目清單。Provides the base class for types that define a list of items used to create a smart tag panel.

DesignerActionListCollection

表示 DesignerActionList 物件的集合。Represents a collection of DesignerActionList objects.

DesignerActionListsChangedEventArgs

提供 DesignerActionListsChanged 事件的資料。Provides data for the DesignerActionListsChanged event.

DesignerActionMethodItem

表示智慧標籤面板項目,該項目與衍生自 DesignerActionList 之類別中的方法相關聯。Represents a smart tag panel item that is associated with a method in a class derived from DesignerActionList.

DesignerActionPropertyItem

代表與從 DesignerActionList 衍生之類別中屬性相關聯的面板項目。Represents a panel item that is associated with a property in a class derived from DesignerActionList. 這個類別無法被繼承。This class cannot be inherited.

DesignerActionService

建立管理元件之 DesignerActionItem 物件集合的設計階段服務。Establishes a design-time service that manages the collection of DesignerActionItem objects for components.

DesignerActionTextItem

表示智慧標籤面板上的靜態文字項目。Represents a static text item on a smart tag panel.

DesignerActionUIService

管理智慧標籤面板的使用者介面 (UI)。Manages the user interface (UI) for a smart tag panel. 這個類別無法被繼承。This class cannot be inherited.

DesignerActionUIStateChangeEventArgs

提供 DesignerActionUIStateChange 事件的資料。Provides data for the DesignerActionUIStateChange event.

DesignerCollection

表示設計工具的集合。Represents a collection of designers.

DesignerCommandSet

表示設計階段工具 (提供智慧標籤或設計工具動詞命令功能) 的基底類別,不是衍生自 ComponentDesignerRepresents a base class for design-time tools, not derived from ComponentDesigner, that provide smart tag or designer verb capabilities.

DesignerEventArgs

提供 DesignerCreatedDesignerDisposed 事件的資料。Provides data for the DesignerCreated and DesignerDisposed events.

DesignerOptionService

提供基底類別,用於取得和設定設計工具的選項值。Provides a base class for getting and setting option values for a designer.

DesignerOptionService.DesignerOptionCollection

包含設計工具選項的集合。Contains a collection of designer options. 這個類別無法被繼承。This class cannot be inherited.

DesignerTransaction

提供方式,用於群組一系列設計階段動作以改善效能,以及啟用大部分變更類型以復原。Provides a way to group a series of design-time actions to improve performance and enable most types of changes to be undone.

DesignerTransactionCloseEventArgs

提供 TransactionClosedTransactionClosing 事件的資料。Provides data for the TransactionClosed and TransactionClosing events.

DesignerVerb

表示可從設計工具叫用 (Invoke) 的動詞命令 (Verb)。Represents a verb that can be invoked from a designer.

DesignerVerbCollection

表示 DesignerVerb 物件的集合。Represents a collection of DesignerVerb objects.

DesignSurface

呈現可供設計元件的使用者介面。Presents a user interface for designing components.

DesignSurfaceCollection

包含設計介面的集合。Contains a collection of design surfaces. 這個類別無法被繼承。This class cannot be inherited.

DesignSurfaceEventArgs

提供 DesignSurfaceCreated 事件的資料。Provides data for the DesignSurfaceCreated event.

DesignSurfaceManager

管理 DesignSurface 物件的集合。Manages a collection of DesignSurface objects.

DesigntimeLicenseContext

表示可支援設計階段授權提供者 (Provider) 的設計階段授權內容。Represents a design-time license context that can support a license provider at design time.

DesigntimeLicenseContextSerializer

提供設計階段授權內容序列化 (Serialization) 的支援。Provides support for design-time license context serialization.

EventBindingService

IEventBindingService 介面的預設實作。A default implementation of the IEventBindingService interface.

ExceptionCollection

表示例外狀況的集合。Represents the collection of exceptions.

HelpKeywordAttribute

指定類別或成員的內容關鍵字。Specifies the context keyword for a class or member. 這個類別無法被繼承。This class cannot be inherited.

InheritanceService

提供一組方法,識別繼承的元件。Provides a set of methods for identifying inherited components.

LoadedEventArgs

提供 Loaded 事件的資料。Provides data for the Loaded event. 這個類別無法被繼承。This class cannot be inherited.

LocalizationExtenderProvider

對根設計工具提供當地語系化 (Localization) 功能的設計階段支援。Provides design-time support for localization features to a root designer.

MenuCommand

表示 Windows 功能表或工具列命令項目。Represents a Windows menu or toolbar command item.

MenuCommandsChangedEventArgs

提供 MenuCommandsChanged 事件的資料。Provides data for the MenuCommandsChanged event.

MenuCommandService

實作 IMenuCommandService 介面。Implements the IMenuCommandService interface.

MultilineStringEditor

顯示對話方塊,可在設計模式中編輯多行字串。Displays a dialog for editing multi-line strings in design mode.

ObjectSelectorEditor

實作可用於設計值編輯器的基本功能。Implements the basic functionality that can be used to design value editors. 而這些編輯器可以提供使用者介面,表示並編輯受支援資料型別之物件的值。These editors can, in turn, provide a user interface for representing and editing the values of objects of the supported data types.

ObjectSelectorEditor.Selector

顯示標籤項目階層式集合,所有項目皆由 TreeNode 表示。Displays a hierarchical collection of labeled items, each represented by a TreeNode.

ObjectSelectorEditor.SelectorNode

表示 TreeView 的節點。Represents a node of a TreeView.

ProjectTargetFrameworkAttribute

指定專案的目標架構。Specifies the target framework for a project.

ServiceContainer

提供 IServiceContainer 介面的簡單實作。Provides a simple implementation of the IServiceContainer interface. 這個類別無法被繼承。This class cannot be inherited.

StandardCommands

為大部分應用程式可用的標準命令集合定義識別項。Defines identifiers for the standard set of commands that are available to most applications.

StandardToolWindows

定義 GUID 識別項,這個識別項會對應至可以在設計環境中取得的標準工具視窗集合。Defines GUID identifiers that correspond to the standard set of tool windows that are available in the design environment.

TypeDescriptionProviderService

為指定的型別,提供型別描述提供者。Provides a type description provider for a specified type.

UndoEngine

指定設計階段的一般復原/取消復原功能。Specifies generic undo/redo functionality at design time.

UndoEngine.UndoUnit

封裝使用者可以復原的工作單元。Encapsulates a unit of work that a user can undo.

介面

IComponentChangeService

提供可加入和移除事件處理常式的介面給加入、變更、移除或重新命名元件的事件,並提供可引發 ComponentChangedComponentChanging 事件的方法。Provides an interface to add and remove the event handlers for events that add, change, remove or rename components, and provides methods to raise a ComponentChanged or ComponentChanging event.

IComponentDesignerDebugService

提供設計階段環境中的偵錯服務。Provides debugging services in a design-time environment.

IComponentDesignerStateService

允許設計工具儲存及擷取其狀態。Allows a designer to store and retrieve its state.

IComponentDiscoveryService

在設計階段啟用元件的列舉。Enables enumeration of components at design time.

IComponentInitializer

在元件建立期間提供一組建議的預設值。Provides a set of recommended default values during component creation.

IDesigner

提供建置 (Build) 自訂設計工具的基本架構。Provides the basic framework for building a custom designer.

IDesignerEventService

在以下情況下提供事件通知:加入和移除主要設計工具時、變更選取的元件時,以及目前的主要計工具變更時。Provides event notifications when root designers are added and removed, when a selected component changes, and when the current root designer changes.

IDesignerFilter

提供可以讓設計工具存取和篩選 TypeDescriptor 物件字典的介面,在該物件中儲存了屬性 (Property)、屬性 (Attribute) 甚至是元件設計工具可公開至設計階段環境的事件描述項。Provides an interface that enables a designer to access and filter the dictionaries of a TypeDescriptor that stores the property, attribute, and event descriptors that a component designer can expose to the design-time environment.

IDesignerHost

提供用來管理設計工具異動和元件的介面。Provides an interface for managing designer transactions and components.

IDesignerHostTransactionState

為設計工具主應用程式指定可報告交易狀態的方法。Specifies methods for the designer host to report on the state of transactions.

IDesignerOptionService

提供對設計工具選項的存取,這些選項位在 Visual Studio 開發環境中 [工具] 功能表的 [選項] 命令下。Provides access to the designer options located on the Tools menu under the Options command in the Visual Studio development environment.

IDesignTimeAssemblyLoader

將組件載入至設計工具的公用程式。Utility for loading assemblies in a designer.

IDictionaryService

提供透過服務的基本、元件站台特定、機碼值組字典,設計工具可使用它來儲存使用者定義的資料。Provides a basic, component site-specific, key-value pair dictionary through a service that a designer can use to store user-defined data.

IEventBindingService

提供為元件事件登錄事件處理常式的服務。Provides a service for registering event handlers for component events.

IExtenderListService

提供可列出擴充性提供者 (Extender Provider) 的介面。Provides an interface that can list extender providers.

IExtenderProviderService

提供在設計階段加入及移除擴充性提供者 (Extender Provider) 的介面。Provides an interface for adding and removing extender providers at design time.

IHelpService

提供在設計階段顯示說明主題以及加入和移除 Help 關鍵字的方法。Provides methods for showing Help topics and adding and removing Help keywords at design time.

IInheritanceService

提供識別某個元件的元件之方法。Provides methods for identifying the components of a component.

IMenuCommandService

提供方法,用來管理可於設計模式中使用的全域設計工具動詞命令和功能表命令,以及顯示捷徑功能表的某些型別。Provides methods to manage the global designer verbs and menu commands available in design mode, and to show some types of shortcut menus.

IMultitargetHelperService

定義設計階段環境中的多目標型別名稱解析服務。Defines multi-target type name resolution services in a design-time environment.

IReferenceService

提供介面,在專案內依名稱或型別取得物件的參考、取得指定物件的名稱,以及在設計工具專案內找到指定物件的父物件。Provides an interface for obtaining references to objects within a project by name or type, obtaining the name of a specified object, and for locating the parent of a specified object within a designer project.

IResourceService

提供設計工具的介面,存取特定 CultureInfo 資源型別的資源讀取器 (Reader) 和寫入器 (Writer)。Provides an interface for designers to access resource readers and writers for specific CultureInfo resource types.

IRootDesigner

提供根層次設計工具檢視技術的支援。Provides support for root-level designer view technologies.

ISelectionService

提供介面供設計工具選取元件。Provides an interface for a designer to select components.

IServiceContainer

提供服務的容器 (Container)。Provides a container for services.

ITreeDesigner

為建置一組相關的自訂設計工具提供支援。Provides support for building a set of related custom designers.

ITypeDescriptorFilterService

提供介面,在設計模式中修改元件的成員描述項集。Provides an interface to modify the set of member descriptors for a component in design mode.

ITypeDiscoveryService

探索設計階段可用的型別。Discovers available types at design time.

ITypeResolutionService

提供以名稱擷取組件 (Assembly) 或型別的介面。Provides an interface to retrieve an assembly or type by name.

列舉

ComponentActionsType

根據物件繫結的智慧標籤型別如何與元件相關聯來指定其型別。Specifies the type of object-bound smart tag with respect to how it was associated with the component.

DesignerActionListsChangedType

指定 DesignerActionList 物件的集合中發生的變更類型。Specifies the type of change occurring in a collection of DesignerActionList objects.

DesignerActionUIStateChangeType

指定智慧標籤面板的顯示狀態。Specifies the display state of a smart tag panel.

DisplayMode

定義識別項,這個識別項會指示 ByteViewer 所使用的顯示模式。Defines identifiers that indicate the display modes used by ByteViewer.

HelpContextType

定義識別項,這個識別項指示說明資訊要求產生的所在內容的相關資訊。Defines identifiers that indicate information about the context in which a request for Help information originated.

HelpKeywordType

定義表示 Help 關鍵字型別的識別項。Defines identifiers that indicate the type of a Help keyword.

MenuCommandsChangedType

指定相關物件之 MenuCommands 集合發生的動作類型。Specifies the type of action that occurred to the related object's MenuCommands collection.

SelectionTypes

定義指示選取類型的識別項。Defines identifiers that indicate the type of a selection.

ViewTechnology

定義設計工具主應用程式 (Designer Host) 所支援的技術集合的識別項。Defines identifiers for a set of technologies that designer hosts support.

委派

ActiveDesignerEventHandler

代表將處理 ActiveDesignerChanged 事件的方法。Represents the method that will handle the ActiveDesignerChanged event.

ActiveDesignSurfaceChangedEventHandler

代表將處理 ActiveDesignSurfaceChangedDesignSurfaceManager 事件的方法。Represents the method that will handle the ActiveDesignSurfaceChanged event of a DesignSurfaceManager. 這個類別無法被繼承。This class cannot be inherited.

ComponentChangedEventHandler

代表將處理 ComponentChanged 事件的方法。Represents the method that will handle a ComponentChanged event.

ComponentChangingEventHandler

代表將處理 ComponentChanging 事件的方法。Represents the method that will handle a ComponentChanging event.

ComponentEventHandler

表示處理為元件層次事件所引發的 ComponentAddingComponentAddedComponentRemovingComponentRemoved 事件的方法。Represents the method that will handle the ComponentAdding, ComponentAdded, ComponentRemoving, and ComponentRemoved events raised for component-level events.

ComponentRenameEventHandler

代表將處理 ComponentRename 事件的方法。Represents the method that will handle a ComponentRename event.

DesignerActionListsChangedEventHandler

代表將處理 DesignerActionListsChangedDesignerActionService 事件的方法。Represents the method that will handle the DesignerActionListsChanged event of a DesignerActionService. 這個類別無法被繼承。This class cannot be inherited.

DesignerActionUIStateChangeEventHandler

代表將處理 DesignerActionUIStateChangeDesignerActionUIService 事件的方法。Represents the method that will handle the DesignerActionUIStateChange event of a DesignerActionUIService.

DesignerEventHandler

表示處理建立或配置文件時所引發的 DesignerCreatedDesignerDisposed 事件的方法。Represents the method that will handle the DesignerCreated and DesignerDisposed events that are raised when a document is created or disposed of.

DesignerTransactionCloseEventHandler

表示處理設計工具的 TransactionClosedTransactionClosing 事件的方法。Represents the method that handles the TransactionClosed and TransactionClosing events of a designer.

DesignSurfaceEventHandler

表示處理 DesignSurfaceCreated 類別的 DesignSurfaceManager 事件的方法。Represents the method that will handle the DesignSurfaceCreated event of a DesignSurfaceManager class. 這個類別無法被繼承。This class cannot be inherited.

LoadedEventHandler

代表將處理 DesignSurface 類別的 Loaded 事件之方法。Represents the method that will handle the Loaded event of the DesignSurface class. 這個類別無法被繼承。This class cannot be inherited.

MenuCommandsChangedEventHandler

代表將處理 MenuCommandsChangedMenuCommandService 事件的方法。Represents the method that will handle the MenuCommandsChanged event of a MenuCommandService. 這個類別無法被繼承。This class cannot be inherited.

ServiceCreatorCallback

提供回呼 (Callback) 機制,這個回呼機制可以視需要建立服務的執行個體。Provides a callback mechanism that can create an instance of a service on demand.

備註

此命名空間中的類別包括:The classes in this namespace include: