Converts the given value object to the specified type, using the specified context and culture information.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public override Object ConvertTo( ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType )
Public Overrides Function ConvertTo ( _ context As ITypeDescriptorContext, _ culture As CultureInfo, _ value As Object, _ destinationType As Type _ ) As Object
public: virtual Object^ ConvertTo( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value, Type^ destinationType ) override
Parameters
- context (ITypeDescriptorContext)
- An ITypeDescriptorContext that provides a format context.
- culture (CultureInfo)
- A CultureInfo. If null is passed, the current culture is assumed.
Return Value
An Object that represents the converted value.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The destinationType parameter is null. |
NotSupportedException | The conversion cannot be performed. |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238