Show / Hide Table of Contents

Class StringFormatConverter

Converts a value to a string using a format string.

Inheritance
System.Object
StringFormatConverter
Implements
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: System.Windows.Controls.DataVisualization
Assembly: OpenSilver.Controls.DataVisualization.Toolkit.dll
Syntax
public class StringFormatConverter : IValueConverter

Methods

| Improve this Doc View Source

Convert(Object, Type, Object, CultureInfo)

Converts a value to a string by formatting it.

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

The value to convert.

System.Type targetType

The target type of the conversion.

System.Object parameter

The format string.

System.Globalization.CultureInfo culture

The culture to use for conversion.

Returns
Type Description
System.Object

The formatted string.

| Improve this Doc View Source

ConvertBack(Object, Type, Object, CultureInfo)

Converts a value from a string to a target type.

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

The value to convert to a string.

System.Type targetType

The target type of the conversion.

System.Object parameter

A parameter used during the conversion process.

System.Globalization.CultureInfo culture

The culture to use for the conversion.

Returns
Type Description
System.Object

The converted object.

Implements

IValueConverter
  • Improve this Doc
  • View Source