System.ComponentModel.Design 命名空间

System.ComponentModel.Design 命名空间包含的类可供开发人员用来为组件生成自定义的设计时行为,以及在设计时配置组件所需的用户界面。 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 编辑集合的内容。Provides a modal dialog box for editing the contents of a collection using a UITypeEditor.

CommandID

表示唯一的命令标识符,此标识符由一个命令 ID 数字和一个 GUID 菜单组标识符组成。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

表示设计时工具的基类(不是从 ComponentDesigner 派生的),它提供智能标记或设计器谓词能力。Represents 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

表示可从设计器中调用的谓词。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

表示可在设计时支持许可证提供程序的设计时许可证上下文。Represents a design-time license context that can support a license provider at design time.

DesigntimeLicenseContextSerializer

为设计时许可证上下文序列化提供支持。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

向根设计器提供本地化功能的设计时支持。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

提供用于生成自定义设计器的基本框架。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 字典的接口,它存储组件设计器可以向设计时环境公开的属性、特性和事件说明符。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

提供可列出扩展程序提供程序的接口。Provides an interface that can list extender providers.

IExtenderProviderService

提供一个接口,用于在设计时添加和移除扩展程序提供程序。Provides an interface for adding and removing extender providers at design time.

IHelpService

提供在设计时显示“帮助”主题和添加及移除“帮助”关键字的方法。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 资源类型的资源读取器和编写器的接口。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

提供服务的容器。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

提供按名称检索程序集或类型的接口。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

定义用于指示帮助关键字类型的标识符。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

定义设计器宿主所支持的技术集的标识符。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

表示将处理为组件级事件引发的下列事件的方法:ComponentAddingComponentAddedComponentRemovingComponentRemovedRepresents 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

提供一种回调机制,它可以即需创建服务的实例。Provides a callback mechanism that can create an instance of a service on demand.

注解

此命名空间中的类包括:The classes in this namespace include: