Provides a context to a value formatter, so that the value formatter can perform a conversion.
ITypeDescriptorContext
[Visual Basic] Public Interface ITypeDescriptorContext Implements IServiceObjectProvider [C#] public interface ITypeDescriptorContext : IServiceObjectProvider [C++] public __gc __interface ITypeDescriptorContext : public IServiceObjectProvider
[JScript] In JScript, you can use the interfaces in the NGWS frameworks, but you cannot define your own.
This interface is typically used at design time to provide information about a design-time container. This interface is optional. It can enable a conversion that is otherwise impossible.
Notes to Callers: You should not rely on the presence of this context interface when you design a formatter. If a particular interface, property, or service is necessary but not available, the formatter should return a null reference (in Visual Basic Nothing) rather than throw an exception. This interface's properties can return a null reference (Nothing) at any time, and you should plan for this.
Namespace: System.ComponentModel
Assembly: System.dll
ITypeDescriptorContext Members | System.ComponentModel Namespace