Skip to main content

TimeRulerFormatStringService.GetHourOnlyFormat(TimeRuler) Method

Override this method to change the format of the individual hour captions displayed at the Time Ruler.

Namespace: DevExpress.XtraScheduler.Services.Implementation

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public string GetHourOnlyFormat(
    TimeRuler ruler
)

Parameters

Name Type Description
ruler TimeRuler

A TimeRuler object.

Returns

Type Description
String

A format string.

Remarks

For information on using the TimeRulerFormatStringService refer to the How to: Display TimeRulers with Different Time Formats Together topic and the online example Formatting Services - an example of use.

See Also