Sdílet prostřednictvím


ColorConverter.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

[SuppressMessageAttribute("Microsoft.Performance", "CA1800")]
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.

See Also

Reference

ColorConverter Class
ColorConverter Members
Microsoft.Xna.Framework.Design Namespace

Platforms

Windows XP SP2, Windows Vista