Share via


PointDConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the given value object to the specified type, using the specified context and culture information.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object
public override Object ConvertTo(
    ITypeDescriptorContext context,
    CultureInfo culture,
    Object value,
    Type destinationType
)
public:
virtual Object^ ConvertTo(
    ITypeDescriptorContext^ context, 
    CultureInfo^ culture, 
    Object^ value, 
    Type^ destinationType
) override
abstract ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object  
override ConvertTo : 
        context:ITypeDescriptorContext * 
        culture:CultureInfo * 
        value:Object * 
        destinationType:Type -> Object
public override function ConvertTo(
    context : ITypeDescriptorContext, 
    culture : CultureInfo, 
    value : Object, 
    destinationType : Type
) : Object

Parameters

  • context
    Type: ITypeDescriptorContext

    An ITypeDescriptorContext that provides a format context.

  • culture
    Type: CultureInfo

    A CultureInfo object. If a null reference (Nothing in Visual Basic) is passed, the current culture is assumed.

  • value
    Type: Object

    The Object to convert.

  • destinationType
    Type: Type

    The Type to convert the value parameter to.

Return Value

Type: Object

.NET Framework Security

See Also

Reference

PointDConverter Class

ConvertTo Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace