New to Telerik UI for WPFStart a free 30-day trial

Provides a mechanism for controlling formatting of IntervalBase labels.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public interface IIntervalFormatterProvider

Methods

Returns a collection of formatters used to convert DateTime objects to specific strings.

C#
Func<DateTime, string>[] GetFormatters(IntervalBase interval)
Parameters:intervalIntervalBase

The IntervalBase that this formatter provider is associated with.

Returns:

Func<DateTime, string>[]

A collection of formatters.

Remarks:

The collection is used when CurrentIntervalSpan equals 1; otherwise, the collection returned by GetIntervalSpanFormatters(IntervalBase) is used.

Gets a collection of formatters used to convert DateTime objects to specific strings.

C#
Func<DateTime, string>[] GetIntervalSpanFormatters(IntervalBase interval)
Parameters:intervalIntervalBase

The IntervalBase that this formatter provider is associated with.

Returns:

Func<DateTime, 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.