Interface
IIntervalFormatterProvider

Provides a mechanism for controlling formatting of IntervalBase labels.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public interface IIntervalFormatterProvider

Methods

GetFormatters(IntervalBase)

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

Declaration

cs-api-definition
Func<DateTime, string>[] GetFormatters(IntervalBase interval)

Parameters

interval

IntervalBase

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.

GetIntervalSpanFormatters(IntervalBase)

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

Declaration

cs-api-definition
Func<DateTime, string>[] GetIntervalSpanFormatters(IntervalBase interval)

Parameters

interval

IntervalBase

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.