Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

System.ComponentModel Namespace

The System.ComponentModel namespace provides classes that are used to implement the run-time and design-time behavior of components and controls. This namespace includes the base classes and interfaces for implementing attributes and type converters, binding to data sources, and licensing components.

The classes in this namespace divide into the following categories:

  Class Description
Public class AddingNewEventArgs Provides data for the BindingSource.AddingNew event.
Public class AmbientValueAttribute Specifies the value to pass to a property to cause the property to get its value from another source. This is known as ambience. This class cannot be inherited.
Public class ArrayConverter Provides a type converter to convert Array objects to and from various other representations.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps AsyncCompletedEventArgs Provides data for the MethodNameCompleted event.
Public class AsyncOperation Tracks the lifetime of an asynchronous operation.
Public class AsyncOperationManager Provides concurrency management for classes that support asynchronous method calls. This class cannot be inherited.
Public class AttributeCollection Represents a collection of attributes.
Public class AttributeProviderAttribute Enables attribute redirection. This class cannot be inherited.
Public class BackgroundWorker Executes an operation on a separate thread.
Public class BaseNumberConverter Provides a base type converter for nonfloating-point numerical types.
Public class BindableAttribute Specifies whether a member is typically used for binding. This class cannot be inherited.
Public class BindingList<T> Provides a generic collection that supports data binding.
Public class BooleanConverter Provides a type converter to convert Boolean objects to and from various other representations.
Public class BrowsableAttribute Specifies whether a property or event should be displayed in a Properties window.
Public class ByteConverter Provides a type converter to convert 8-bit unsigned integer objects to and from various other representations.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps CancelEventArgs Provides data for a cancelable event.
Public class CategoryAttribute Specifies the name of the category in which to group the property or event when displayed in a PropertyGrid control set to Categorized mode.
Public class CharConverter Provides a type converter to convert Unicode character objects to and from various other representations.
Public class CollectionChangeEventArgs Provides data for the CollectionChanged event.
Public class CollectionConverter Provides a type converter to convert collection objects to and from various other representations.
Public class ComplexBindingPropertiesAttribute Specifies the data source and data member properties for a component that supports complex data binding. This class cannot be inherited.
Public class Component Provides the base implementation for the IComponent interface and enables object sharing between applications.
Public class ComponentCollection Provides a read-only container for a collection of IComponent objects.
Public class ComponentConverter Provides a type converter to convert components to and from various other representations.
Public class ComponentEditor Provides the base class for a custom component editor.
Public class ComponentResourceManager Provides simple functionality for enumerating resources for a component or object. The ComponentResourceManager class is a ResourceManager.
Public class Container Encapsulates zero or more components.
Public class ContainerFilterService Provides a base class for the container filter service.
Public class CultureInfoConverter Provides a type converter to convert CultureInfo objects to and from various other representations.
Public class CurrentChangedEventManager Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the CurrentChanged event.
Public class CurrentChangingEventArgs Provides information for the CurrentChanging event.
Public class CurrentChangingEventManager Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the CurrentChanging event.
Public class CustomTypeDescriptor Provides a simple default implementation of the ICustomTypeDescriptor interface.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps DataErrorsChangedEventArgs Provides data for the INotifyDataErrorInfo.ErrorsChanged event.
Public class DataObjectAttribute Identifies a type as an object suitable for binding to an ObjectDataSource object. This class cannot be inherited.
Public class DataObjectFieldAttribute Provides metadata for a property representing a data field. This class cannot be inherited.
Public class DataObjectMethodAttribute Identifies a data operation method exposed by a type, what type of operation the method performs, and whether the method is the default data method. This class cannot be inherited.
Public class DateTimeConverter Provides a type converter to convert DateTime objects to and from various other representations.
Public class DateTimeOffsetConverter Provides a type converter to convert DateTimeOffset structures to and from various other representations.
Public class DecimalConverter Provides a type converter to convert Decimal objects to and from various other representations.
Public class DefaultBindingPropertyAttribute Specifies the default binding property for a component. This class cannot be inherited.
Public class DefaultEventAttribute Specifies the default event for a component.
Public class DefaultPropertyAttribute Specifies the default property for a component.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps DefaultValueAttribute Specifies the default value for a property.
Public class DependencyPropertyDescriptor Provides an extension of PropertyDescriptor that accounts for the additional property characteristics of a dependency property.
Public class DescriptionAttribute Specifies a description for a property or event.
Public class DesignerAttribute Specifies the class used to implement design-time services for a component.
Public class DesignerCategoryAttribute Specifies that the designer for a class belongs to a certain category.
Public class DesignerProperties Provides attached properties used to communicate with a designer.
Public class DesignerSerializationVisibilityAttribute Specifies the type of persistence to use when serializing a property on a component at design time.
Public class DesignOnlyAttribute Specifies whether a property can only be set at design time.
Public class DesignTimeVisibleAttribute DesignTimeVisibleAttribute marks a component's visibility. If Yes is present, a visual designer can show this component on a designer.
Public class DisplayNameAttribute Specifies the display name for a property, event, or public void method which takes no arguments.
Public class DoubleConverter Provides a type converter to convert double-precision, floating point number objects to and from various other representations.
Public class DoWorkEventArgs Provides data for the DoWork event handler.
Public class EditorAttribute Specifies the editor to use to change a property. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps EditorBrowsableAttribute Specifies that a property or method is viewable in an editor. This class cannot be inherited.
Public class EnumConverter Provides a type converter to convert Enum objects to and from various other representations.
Public class ErrorsChangedEventManager Provides a WeakEventManager implementation so that you can use the weak event listener pattern to attach listeners for the ErrorsChanged event.
Public class EventDescriptor Provides information about an event.
Public class EventDescriptorCollection Represents a collection of EventDescriptor objects.
Public class EventHandlerList Provides a simple list of delegates. This class cannot be inherited.
Public class ExpandableObjectConverter Provides a type converter to convert expandable objects to and from various other representations.
Public class ExtenderProvidedPropertyAttribute Specifies a property that is offered by an extender provider. This class cannot be inherited.
Public class GroupDescription Provides an abstract base class for types that describe how to divide the items in a collection into groups.
Public class GuidConverter Provides a type converter to convert Guid objects to and from various other representations.
Public class HandledEventArgs Provides data for events that can be handled completely in an event handler.
Public class ImmutableObjectAttribute Specifies that an object has no subproperties capable of being edited. This class cannot be inherited.
Public class InheritanceAttribute Indicates whether the component associated with this attribute has been inherited from a base class. This class cannot be inherited.
Public class InitializationEventAttribute Specifies which event is raised on initialization. This class cannot be inherited.
Public class InstallerTypeAttribute Specifies the installer for a type that installs components.
Public class InstanceCreationEditor Creates an instance of a particular type of property from a drop-down box within the PropertyGrid.
Public class Int16Converter Provides a type converter to convert 16-bit signed integer objects to and from other representations.
Public class Int32Converter Provides a type converter to convert 32-bit signed integer objects to and from other representations.
Public class Int64Converter Provides a type converter to convert 64-bit signed integer objects to and from various other representations.
Public class InvalidAsynchronousStateException Thrown when a thread on which an operation should execute no longer exists or has no message loop.
Public class InvalidEnumArgumentException The exception thrown when using invalid arguments that are enumerators.
Public class ItemPropertyInfo Contains information about a property.
Public class License Provides the abstract base class for all licenses. A license is granted to a specific instance of a component.
Public class LicenseContext Specifies when you can use a licensed object and provides a way of obtaining additional services needed to support licenses running within its domain.
Public class LicenseException Represents the exception thrown when a component cannot be granted a license.
Public class LicenseManager Provides properties and methods to add a license to a component and to manage a LicenseProvider. This class cannot be inherited.
Public class LicenseProvider Provides the abstract base class for implementing a license provider.
Public class LicenseProviderAttribute Specifies the LicenseProvider to use with a class. This class cannot be inherited.
Public class LicFileLicenseProvider Provides an implementation of a LicenseProvider. The provider works in a similar fashion to the Microsoft .NET Framework standard licensing model.
Public class ListBindableAttribute Specifies that a list can be used as a data source. A visual designer should use this attribute to determine whether to display a particular list in a data-binding picker. This class cannot be inherited.
Public class ListChangedEventArgs Provides data for the ListChanged event.
Public class ListSortDescription Provides a description of the sort operation applied to a data source.
Public class ListSortDescriptionCollection Represents a collection of ListSortDescription objects.
Public class LocalizableAttribute Specifies whether a property should be localized. This class cannot be inherited.
Public class LookupBindingPropertiesAttribute Specifies the properties that support lookup-based binding. This class cannot be inherited.
Public class MarshalByValueComponent Implements IComponent and provides the base implementation for remotable components that are marshaled by value (a copy of the serialized object is passed).
Public class MaskedTextProvider Represents a mask-parsing service that can be used by any number of controls that support masking, such as the MaskedTextBox control.
Public class MemberDescriptor Represents a class member, such as a property or event. This is an abstract base class.
Public class MergablePropertyAttribute Specifies that this property can be combined with properties belonging to other objects in a Properties window.
Public class MultilineStringConverter Provides a type converter to convert multiline strings to a simple string.
Public class NestedContainer Provides the base implementation for the INestedContainer interface, which enables containers to have an owning component.
Public class NotifyParentPropertyAttribute Indicates that the parent property is notified when the value of the property that this attribute is applied to is modified. This class cannot be inherited.
Public class NullableConverter Provides automatic conversion between a nullable type and its underlying primitive type.
Public class ParenthesizePropertyNameAttribute Indicates whether the name of the associated property is displayed with parentheses in the Properties window. This class cannot be inherited.
Public class PasswordPropertyTextAttribute Indicates that an object's text representation is obscured by characters such as asterisks. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps ProgressChangedEventArgs Provides data for the ProgressChanged event.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps PropertyChangedEventArgs Provides data for the PropertyChanged event.
Public class PropertyChangedEventManager Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the PropertyChanged event.
Public class PropertyChangingEventArgs Provides data for the PropertyChanging event.
Public class PropertyDescriptor Provides an abstraction of a property on a class.
Public class PropertyDescriptorCollection Represents a collection of PropertyDescriptor objects.
Public class PropertyFilterAttribute Specifies which properties should be reported by type descriptors, specifically the GetProperties method.
Public class PropertyTabAttribute Identifies the property tab or tabs to display for the specified class or classes.
Public class ProvidePropertyAttribute Specifies the name of the property that an implementer of IExtenderProvider offers to other components. This class cannot be inherited
Public class ReadOnlyAttribute Specifies whether the property this attribute is bound to is read-only or read/write. This class cannot be inherited
Public class RecommendedAsConfigurableAttribute Obsolete. Specifies that the property can be used as an application setting.
Public class ReferenceConverter Provides a type converter to convert object references to and from other representations.
Public class RefreshEventArgs Provides data for the Refreshed event.
Public class RefreshPropertiesAttribute Indicates that the property grid should refresh when the associated property value changes. This class cannot be inherited.
Public class RunInstallerAttribute Specifies whether the Visual Studio Custom Action Installer or the Installutil.exe (Installer Tool) should be invoked when the assembly is installed.
Public class RunWorkerCompletedEventArgs Provides data for the MethodNameCompleted event.
Public class SByteConverter Provides a type converter to convert 8-bit unsigned integer objects to and from a string.
Public class SettingsBindableAttribute Specifies when a component property can be bound to an application setting.
Public class SingleConverter Provides a type converter to convert single-precision, floating point number objects to and from various other representations.
Public class SortDescriptionCollection Represents a collection of SortDescription objects.
Public class StringConverter Provides a type converter to convert string objects to and from other representations.
Public class SyntaxCheck Infrastructure. Provides methods to verify the machine name and path conform to a specific syntax. This class cannot be inherited.
Public class TimeSpanConverter Provides a type converter to convert TimeSpan objects to and from other representations.
Public class ToolboxItemAttribute Represents an attribute of a toolbox item.
Public class ToolboxItemFilterAttribute Specifies the filter string and filter type to use for a toolbox item.
Public class TypeConverter Provides a unified way of converting types of values to other types, as well as for accessing standard values and subproperties.
Protected class TypeConverter.SimplePropertyDescriptor Represents an abstract class that provides properties for objects that do not have properties.
Public class TypeConverter.StandardValuesCollection Represents a collection of values.
Public class TypeConverterAttribute Specifies what type to use as a converter for the object this attribute is bound to.
Public class TypeDescriptionProvider Provides supplemental metadata to the TypeDescriptor.
Public class TypeDescriptionProviderAttribute Specifies the custom type description provider for a class. This class cannot be inherited.
Public class TypeDescriptor Provides information about the characteristics for a component, such as its attributes, properties, and events. This class cannot be inherited.
Public class TypeListConverter Provides a type converter that can be used to populate a list box with available types.
Public class UInt16Converter Provides a type converter to convert 16-bit unsigned integer objects to and from other representations.
Public class UInt32Converter Provides a type converter to convert 32-bit unsigned integer objects to and from various other representations.
Public class UInt64Converter Provides a type converter to convert 64-bit unsigned integer objects to and from other representations.
Public class WarningException Specifies an exception that is handled as a warning instead of an error.
Public class Win32Exception Throws an exception for a Win32 error code.

  Structure Description
Public structure SortDescription Defines the direction and the property name to be used as the criteria for sorting a collection.

  Interface Description
Public interface IBindingList Provides the features required to support both complex and simple scenarios when binding to a data source.
Public interface IBindingListView Extends the IBindingList interface by providing advanced sorting and filtering capabilities.
Public interface ICancelAddNew Adds transactional capability when adding a new item to a collection.
Public interface Supported by Portable Class Library Supported in .NET for Windows Store apps IChangeTracking Defines the mechanism for querying the object for changes and resetting of the changed status.
Public interface ICollectionView Enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.
Public interface ICollectionViewFactory An interface that enables implementing collections to create a view to their data. Normally, user code does not call methods on this interface.
Public interface ICollectionViewLiveShaping Defines properties that enables sorting, grouping, and filtering on a CollectionView in real time.
Public interface IComNativeDescriptorHandler Obsolete. Provides a top-level mapping layer between a COM object and a TypeDescriptor.
Public interface IComponent Provides functionality required by all components.
Public interface IContainer Provides functionality for containers. Containers are objects that logically contain zero or more components.
Public interface ICustomTypeDescriptor Provides an interface that supplies dynamic custom type information for an object.
Public interface IDataErrorInfo Provides the functionality to offer custom error information that a user interface can bind to.
Public interface IEditableCollectionView Defines methods and properties that a CollectionView implements to provide editing capabilities to a collection.
Public interface IEditableCollectionViewAddNewItem Defines methods and properties that a CollectionView implements to enable specifying adding items of a specific type.
Public interface Supported by Portable Class Library Supported in .NET for Windows Store apps IEditableObject Provides functionality to commit or rollback changes to an object that is used as a data source.
Public interface IExtenderProvider Defines the interface for extending properties to other components in a container.
Public interface IIntellisenseBuilder Provides an interface to facilitate the retrieval of the builder's name and to display the builder.
Public interface IItemProperties Defines a property that provides information about an object's properties.
Public interface IListSource Provides functionality to an object to return a list that can be bound to a data source.
Public interface INestedContainer Provides functionality for nested containers, which logically contain zero or more other components and are owned by a parent component.
Public interface INestedSite Provides the ability to retrieve the full nested name of a component.
Public interface Supported by Portable Class Library Supported in .NET for Windows Store apps INotifyDataErrorInfo Defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.
Public interface Supported by Portable Class Library Supported in .NET for Windows Store apps INotifyPropertyChanged Notifies clients that a property value has changed.
Public interface INotifyPropertyChanging Notifies clients that a property value is changing.
Public interface IRaiseItemChangedEvents Indicates whether a class converts property change events to ListChanged events.
Public interface Supported by Portable Class Library Supported in .NET for Windows Store apps IRevertibleChangeTracking Provides support for rolling back the changes
Public interface ISite Provides functionality required by sites.
Public interface ISupportInitialize Specifies that this object supports a simple, transacted notification for batch initialization.
Public interface ISupportInitializeNotification Allows coordination of initialization for a component and its dependent properties.
Public interface ISynchronizeInvoke Provides a way to synchronously or asynchronously execute a delegate.
Public interface ITypeDescriptorContext Provides contextual information about a component, such as its container and property descriptor.
Public interface ITypedList Provides functionality to discover the schema for a bindable list, where the properties available for binding differ from the public properties of the object to bind to.

  Delegate Description
Public delegate AddingNewEventHandler Represents the method that will handle the BindingSource.AddingNew event.
Public delegate Supported by Portable Class Library Supported in .NET for Windows Store apps AsyncCompletedEventHandler Represents the method that will handle the MethodNameCompleted event of an asynchronous operation.
Public delegate CancelEventHandler Represents the method that handles a cancelable event.
Public delegate CollectionChangeEventHandler Represents the method that handles the CollectionChanged event raised when adding elements to or removing elements from a collection.
Public delegate CurrentChangingEventHandler Represents the method that handles the CurrentChanging event.
Public delegate DoWorkEventHandler Represents the method that will handle the DoWork event. This class cannot be inherited.
Public delegate HandledEventHandler Represents a method that can handle events which may or may not require further processing after the event handler has returned.
Public delegate ListChangedEventHandler Represents the method that will handle the ListChanged event of the IBindingList class.
Public delegate Supported by Portable Class Library Supported in .NET for Windows Store apps ProgressChangedEventHandler Represents the method that will handle the ProgressChanged event of the BackgroundWorker class. This class cannot be inherited.
Public delegate Supported by Portable Class Library Supported in .NET for Windows Store apps PropertyChangedEventHandler Represents the method that will handle the PropertyChanged event raised when a property is changed on a component.
Public delegate PropertyChangingEventHandler Represents the method that will handle the PropertyChanging event of an INotifyPropertyChanging interface.
Public delegate RefreshEventHandler Represents the method that handles the Refreshed event raised when a Type or component is changed during design time.
Public delegate RunWorkerCompletedEventHandler Represents the method that will handle the RunWorkerCompleted event of a BackgroundWorker class.

  Enumeration Description
Public enumeration BindableSupport Specifies values to indicate whether a property can be bound to a data element or another property.
Public enumeration BindingDirection Specifies whether the template can be bound one way or two ways.
Public enumeration CollectionChangeAction Specifies how the collection is changed.
Public enumeration DataObjectMethodType Identifies the type of data operation performed by a method, as specified by the DataObjectMethodAttribute applied to the method.
Public enumeration DesignerSerializationVisibility Specifies the visibility a property has to the design-time serializer.
Public enumeration Supported by Portable Class Library Supported in .NET for Windows Store apps EditorBrowsableState Specifies the browsable state of a property or method from within an editor.
Public enumeration InheritanceLevel Defines identifiers for types of inheritance levels.
Public enumeration LicenseUsageMode Specifies when the License can be used.
Public enumeration ListChangedType Specifies how the list changed.
Public enumeration ListSortDirection Specifies the direction of a sort operation.
Public enumeration MaskedTextResultHint Specifies values that succinctly describe the results of a masked text parsing operation.
Public enumeration NewItemPlaceholderPosition Specifies where the placeholder for a new item appears in the collection.
Public enumeration PropertyFilterOptions Specifies which properties should be reported by type descriptors, specifically the GetProperties method. This enumeration is used to specify the value of the PropertyFilterAttribute.Filter property.
Public enumeration PropertyTabScope Defines identifiers that indicate the persistence scope of a tab in the Properties window.
Public enumeration RefreshProperties Defines identifiers that indicate the type of a refresh of the Properties window.
Public enumeration ToolboxItemFilterType Defines identifiers used to indicate the type of filter that a ToolboxItemFilterAttribute uses.
Show:
© 2014 Microsoft