menu

WPF

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

    Show / Hide Table of Contents

    Class ColorToStringConverter

    Represnts a class that converts color to string.

    Inheritance
    System.Object
    ColorToStringConverter
    Implements
    System.Windows.Data.IValueConverter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Tools
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public class ColorToStringConverter : IValueConverter

    Constructors

    ColorToStringConverter()

    Declaration
    public ColorToStringConverter()

    Methods

    Convert(Object, Type, Object, CultureInfo)

    Converts color to string.

    Declaration
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object value

    Float to be converted.

    System.Type targetType

    Type, the color is to be converted to.

    System.Object parameter

    Does not matter.

    System.Globalization.CultureInfo culture

    Currently used culture. Not used here.

    Returns
    Type Description
    System.Object

    Converted string.

    ConvertBack(Object, Type, Object, CultureInfo)

    Converts string to color.

    Declaration
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object value

    Float to be converted.

    System.Type targetType

    Type, the color is to be converted to.

    System.Object parameter

    Does not matter.

    System.Globalization.CultureInfo culture

    Currently used culture. Not used here.

    Returns
    Type Description
    System.Object

    Converted color.

    Implements

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