Vector2Converter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
Note
This method is available only when developing for Windows.
Converts the given value object to the specified type, using the specified context and culture information.
Namespace: Microsoft.Xna.Framework.Design
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public override Object ConvertTo (
ITypeDescriptorContext context,
CultureInfo culture,
Object value,
Type destinationType
)
Parameters
- context
The format context. - culture
The culture to use in the conversion. - value
The object to convert. - destinationType
The destination type.
Return Value
The converted value.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | destinationType is null. |
See Also
Reference
Vector2Converter Class
Vector2Converter Members
Microsoft.Xna.Framework.Design Namespace
Platforms
Windows XP SP2, Windows Vista