ConvertTo Method (context, culture, value, destinationType)
NamespacesICSharpCode.AvalonEdit.HighlightingHighlightingDefinitionTypeConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Declaration Syntax
C#Visual BasicVisual 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
virtual Object^ ConvertTo(
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value, 
	Type^ destinationType
) override
context (ITypeDescriptorContext)
An ITypeDescriptorContext that provides a format context.
culture (CultureInfo)
A CultureInfo. If null is passed, the current culture is assumed.
value (Object)
The Object to convert.
destinationType (Type)
The Type to convert the value parameter to.
Return Value
An Object that represents the converted value.
ArgumentNullExceptionThe destinationType parameter is null.
NotSupportedExceptionThe conversion cannot be performed.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: