Interface IIntervalFormatterProvider
Provides a mechanism for controlling formatting of IntervalBase labels.
Namespace: Telerik.Windows.Controls.TimeBar
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public interface IIntervalFormatterProvider
Methods
GetFormatters(IntervalBase)
Returns a collection of formatters used to convert System.DateTime objects to specific strings.
Declaration
Func<DateTime, string>[] GetFormatters(IntervalBase interval)
Parameters
IntervalBase
interval
The IntervalBase that this formatter provider is associated with. |
Returns
System.Func<System.DateTime, System.String>[]
A collection of formatters. |
Remarks
The collection is used when CurrentIntervalSpan equals 1; otherwise, the collection returned by GetIntervalSpanFormatters(IntervalBase) is used.
GetIntervalSpanFormatters(IntervalBase)
Gets a collection of formatters used to convert System.DateTime objects to specific strings.
Declaration
Func<DateTime, string>[] GetIntervalSpanFormatters(IntervalBase interval)
Parameters
IntervalBase
interval
The IntervalBase that this formatter provider is associated with. |
Returns
System.Func<System.DateTime, System.String>[]
A collection of formatters. |
Remarks
The collection is used when CurrentIntervalSpan is different than 1; otherwise, the collection returned by GetFormatters(IntervalBase) is used.