ClassLabelFormatterBase<T>
Provides a base class for label formatters that convert typed values to string representations. This abstract class implements ILabelFormatter to provide type-safe label formatting functionality.
Definition
Namespace:Telerik.Maui.Controls.Compatibility.Chart
Assembly:Telerik.Maui.Controls.Compatibility.dll
Type Parameters:
T
The type of values that this formatter can handle.
Syntax:
public abstract class LabelFormatterBase<T> : ILabelFormatter
Inheritance: objectLabelFormatterBase<T>
Implements:
Constructors
LabelFormatterBase()
Declaration
protected LabelFormatterBase()
Properties
ConvertionContext
Gets the conversion context for the formatter.
Declaration
public virtual object ConvertionContext { get; }
Property Value
The conversion context object, or null if no context is available.
Implements
Methods
FormatTypedValue(T)
Formats a typed value into a string representation.
FormatValue(object)
Formats an object value into a string representation.
This method casts the object to type T
and calls FormatTypedValue(T).