Converts the specified object to another type.
'Declaration
Public Overloads Overrides NotOverridable Function ConvertTo( _
ByVal As ITypeDescriptorContext, _
ByVal As CultureInfo, _
ByVal As Object, _
ByVal As Type _
) As Object
'Usage
Dim instance As LeadLengthDConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim destinationType As Type
Dim value As Object
value = instance.ConvertTo(context, culture, value, destinationType)
function Leadtools.LeadLengthDConverter.ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type)(
context ,
culture ,
value ,
destinationType
)
Parameters
- context
- A formatter context. Use this object to extract additional information about the environment from which this converter is being invoked. Always check whether this value is null. Also, properties on the context object may return null.
- culture
- A System.Globalization.CultureInfo that specifies the culture to represent the object.
- value
- The object to convert.
- destinationType
- The type to convert the object to.
Return Value
An Object representing the converted value.