WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColorItemTypeConverter

    Show / Hide Table of Contents

    Class ColorItemTypeConverter

    Provides a unified way of converting the color items to other types.

    Inheritance
    System.Object
    ColorItemTypeConverter
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class ColorItemTypeConverter : TypeConverter

    Constructors

    ColorItemTypeConverter()

    Declaration
    public ColorItemTypeConverter()

    Methods

    CanConvertTo(ITypeDescriptorContext, Type)

    Check whether the type can be converted.

    Declaration
    public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    An System.ComponentModel.ITypeDescriptorContext that provides a format context.

    System.Type destinationType

    The type converter object to.

    Returns
    Type Description
    System.Boolean

    The converted object.

    ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

    Converts the given value object to the reference type using the specified context and arguments.

    Declaration
    public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    An System.ComponentModel.ITypeDescriptorContext that provides a format context.

    System.Globalization.CultureInfo culture

    A System.Globalization.CultureInfo that specifies the culture used to represent the font.

    System.Object value

    The object value.

    System.Type destinationType

    To convert the object.

    Returns
    Type Description
    System.Object

    The converted object.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved