[This is preliminary documentation and is subject to change.]
The Tools.ComponentModelT 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.
Classes
| Class | Description | |
|---|---|---|
| CancelItemEventArgs<(Of <(T>)>) | Cancelable event argumens carrying item | |
| CancelMessageEventArgs | CancelEventArgs with message witn reason for cancellation | |
| CustomTypeDescriptorAbstractBase | Provides abstract base class for custom type descriptors | |
| CustomTypeDescriptorBase<(Of <(T>)>) | Provides base class for "top-level" custom type descriptors | |
| EnumConverterWithAttributes<(Of <(T>)>) | Implements TypeConverter<(Of <(T>)>) for enums that uses DisplayNameAttribute applyed on enum items and RestrictAttribute | |
| EnumDefaultValueAttribute | Stores default value of property of enumeration type | |
| ExceptionEventArgs | Event arguments carrying Exception | |
| ExceptionEventArgs<(Of <(T>)>) | Type-safe implementation of ExceptionEventArgs | |
| ExpandableObjectConverter<(Of <(T>)>) | Provides base class for type-safe ExpandableObjectConverter with support for interface based conversion as TypeConverter<(Of <(T>)>) | |
| ExpandableObjectConverter<(Of <(T, TOther>)>) | Provides base class for type-safe ExpandableObjectConverter with direct support for conversion to/from one type as TypeConverter<(Of <(T, TOther>)>) and interface-based type-safe converters implementation as TypeConverter<(Of <(T>)>) | |
| FieldDisplayNameAttribute | DisplayNameAttribute that can be applied on fields | |
| FileByteConverter | Simple TypeConverter for Byte | |
| HexaConverter | TypeConverter<(Of <(T>)>) for Byte as hexasring | |
| KnownCategoryAttribute | CategoryAttribute which's value is one of known values | |
| LCategoryAttribute | Localizable version of CategoryAttribute. Defines category shown in PropertyGrid. | |
| LDefaultValueAttribute | Localizable version of DefaultValueAttribute. Defines default value of property. Used by PropertyGrid to visually indicate user that value was changed and by Windows Forms Designer to determine if property should be serialized or not. | |
| LDescriptionAttribute | Localizable version of DescriptionAttribute. Defines description shown in PropertyGrid. | |
| LDisplayNameAttribute | Localizable version of DisplayNameAttribute. Defines name shown in PropertyGrid. | |
| MultipleException | Exception throw when multiple exceptions occured | |
| ObjectStringConverter | ||
| PrefixAttribute | Inform programmer that he should name instances of class market wiht this attribute with names beginning with prefix | |
| ReadOnlyObject | Encapsulates any object and makes it read-only | |
| RecoveryExceptionEventArgs | Event arguments to carry exception with possibility to let the consumer to decide to ignore the exception | |
| RecoveryExceptionEventArgs<(Of <(T>)>) | Type-safe implementation of RecoveryExceptionEventArgs | |
| RestrictAttribute | Indicates if enum may allow values that are not member of it or not | |
| SettingsInheritDefaultValueAttribute | DefaultValueAttribute that takes its value from DefaultSettingValueAttribute | |
| SettingsInheritDescriptionAttribute | DescriptionAttribute that takes its value from SettingsDescriptionAttribute | |
| SuppresHandledEventArgs | Provides event arguments for events that supports marking as handled and suppressing of action event may result to. | |
| TypeConverter<(Of <(T>)>) | Represents base class for type-safe TypeConverter's | |
| TypeConverter<(Of <(T>)>)..::.DAdaptor<(Of <(TOther>)>) | Adapts type-safe delegates from TypeConverter<(Of <(T>)>)..::.ITypeConverterWithValidation<(Of <(TOther>)>) to semi type-safe delegates from TypeConverter<(Of <(T>)>) | |
| TypeConverter<(Of <(T, TOther>)>) | Fully type-safe TypeConverter | |
| ValuesFromRangeAreValidAttribute | For enumeration this attribute is applied onto indicates which additional values that are not member of enumeration are valid enumeration values |
Interfaces
| Interface | Description | |
|---|---|---|
| TypeConverter<(Of <(T>)>)..::.ITypeConverter<(Of <(TOther>)>) | Interface for type-safe TypeConverters (read-write conversion) | |
| TypeConverter<(Of <(T>)>)..::.ITypeConverterFrom<(Of <(TOther>)>) | Interface for type-safe TypeConverters (read-only conversion) | |
| TypeConverter<(Of <(T>)>)..::.ITypeConverterTo<(Of <(TOther>)>) | Interface for type-safe TypeConverters (write-only conversion) | |
| TypeConverter<(Of <(T>)>)..::.ITypeConverterWithValidation<(Of <(TOther>)>) | Interface for type-safe TypeConverters (read-write conversion with validation) |
Delegates
| Delegate | Description | |
|---|---|---|
| TypeConverter<(Of <(T>)>)..::.dConvertFrom | Semi type-safe delegate of the ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) function | |
| TypeConverter<(Of <(T>)>)..::.dConvertTo | Semi type-safe delegate of the ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) function | |
| TypeConverter<(Of <(T>)>)..::.dIsValid | Semi type-safe delegate of the IsValid(ITypeDescriptorContext, Object) function | |
| TypeConverter<(Of <(T>)>)..::.ITypeConverterFrom<(Of <(TOther>)>)..::.dConvertFrom | Delegate to ConverterFrom(Type) function | |
| TypeConverter<(Of <(T>)>)..::.ITypeConverterTo<(Of <(TOther>)>)..::.dConvertTo | delegate to ConvertTo(ITypeDescriptorContext, CultureInfo, T) function | |
| TypeConverter<(Of <(T>)>)..::.ITypeConverterWithValidation<(Of <(TOther>)>)..::.dIsValid | Delegate to the IsValid(ITypeDescriptorContext, UTT) function |
Enumerations
| Enumeration | Description | |
|---|---|---|
| KnownCategoryAttribute..::.AnotherCategories | Defines more categories commonly used by CategoryAttribute, but not predefined by the .NET framework as shared properties of the CategoryAttribute | |
| KnownCategoryAttribute..::.KnownCategories | Represents shared (static) properties of CategoryAttribute | |
| LCategoryAttribute..::.enmLookUpOrder | Possible orders of source of localized string |