Redigera

Dela via


System.Drawing.Design Namespace

Contains classes that extend design-time user interface (UI) logic and drawing.

Classes

BitmapEditor

Provides a user interface for selecting bitmap files in a property browser.

CategoryNameCollection

Represents a collection of category name strings.

ColorEditor

Provides a UITypeEditor for visually picking a color.

ContentAlignmentEditor

Provides a UITypeEditor for visually editing content alignment.

CursorEditor

Provides a UITypeEditor that can perform default file searching for cursor (.cur) files.

FontEditor

Provides a user interface to select and configure a Font object.

FontNameEditor

Provides a UITypeEditor that paints a glyph for the font name.

IconEditor

Provides a UITypeEditor for visually choosing an icon.

ImageEditor

Provides a user interface for selecting an image for a property in a property grid.

MetafileEditor

Provides a UITypeEditor that can perform default file searching for metafile (.emf) files.

PaintValueEventArgs

Provides data for the PaintValue(Object, Graphics, Rectangle) method.

PropertyValueUIItem

Provides information about a property displayed in the Properties window, including the associated event handler, pop-up information string, and the icon to display for the property.

ToolboxComponentsCreatedEventArgs

Provides data for the ComponentsCreated event that occurs when components are added to the toolbox.

ToolboxComponentsCreatingEventArgs

Provides data for the ComponentsCreating event that occurs when components are added to the toolbox.

ToolboxItem

Provides a base implementation of a toolbox item.

ToolboxItemCollection

Represents a collection of toolbox items.

ToolboxItemContainer

Encapsulates a ToolboxItem.

ToolboxItemCreator

Encapsulates a ToolboxItemCreatorCallback. This class cannot be inherited.

ToolboxService

Provides a default implementation of the IToolboxService interface.

UITypeEditor

Provides a base class that can be used to design value editors that can provide a user interface (UI) for representing and editing the values of objects of the supported data types.

Interfaces

IPropertyValueUIService

Provides an interface to manage the images, ToolTips, and event handlers for the properties of a component displayed in a property browser.

IToolboxItemProvider

Exposes a collection of toolbox items.

IToolboxService

Provides methods and properties to manage and query the toolbox in the development environment.

IToolboxUser

Defines an interface for setting the currently selected toolbox item and indicating whether a designer supports a particular toolbox item.

Enums

UITypeEditorEditStyle

Specifies identifiers that indicate the value editing style of a UITypeEditor.

Delegates

PropertyValueUIHandler

Represents the method that adds a delegate to an implementation of IPropertyValueUIService.

PropertyValueUIItemInvokeHandler

Represents the method that will handle the InvokeHandler event of a PropertyValueUIItem.

ToolboxComponentsCreatedEventHandler

Represents the method that handles the ComponentsCreated event.

ToolboxComponentsCreatingEventHandler

Represents the method that handles the ComponentsCreating event.

ToolboxItemCreatorCallback

Provides a callback mechanism that can create a ToolboxItem.

Remarks

The classes in this namespace can be used to create custom toolbox items, type-specific value editors that can edit and graphically represent values of their supported types, and type converters that can convert values between certain types. This namespace provides the basic frameworks for developing extensions to the design-time UI.

Caution

Classes within the System.Drawing.Design namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.