menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StyleNamePairConverter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class StyleNamePairConverter

    Provides a type converter to convert StyleNamePair to and from various other.

    Inheritance
    System.Object
    StyleNamePairConverter
    Namespace: Syncfusion.Windows.Forms.Tools.MultiColumnTreeView
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class StyleNamePairConverter : ExpandableObjectConverter

    Constructors

    StyleNamePairConverter()

    Initialize a new instance of the StyleNamePairConverter class.

    Declaration
    public StyleNamePairConverter()

    Methods

    CanConvertTo(ITypeDescriptorContext, Type)

    Returns whether this converter can convert an object of the given type to the type of this converter.

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

    System.ComponentModel.ITypeDescriptorContext that provides a format context.

    System.Type destinationType

    System.ComponentModel.ITypeDescriptorContext that provides a format context.

    Returns
    Type Description
    System.Boolean

    If true, this converter can perform the conversion; otherwise, false.

    ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

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

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

    System.ComponentModel.ITypeDescriptorContext that provides a format context.

    System.Globalization.CultureInfo culture

    System.Globalization.CultureInfo. If null is passed, the current culture is assumed.

    System.Object value

    The object value.

    System.Type destinationType

    System.Type to convert the parameter to.

    Returns
    Type Description
    System.Object

    Returns the converted value.

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