Back to Devexpress

TimeRuler.Caption Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-timeruler.md

latest2.5 KB
Original Source

TimeRuler.Caption Property

Gets or sets the time ruler’s caption. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public string Caption { get; set; }
vb
Public Property Caption As String

Property Value

TypeDescription
String

A String values that is the time ruler’s caption.

|

Remarks

Use the Caption property to indicate a time zone or a geographical region the time ruler displays, as shown in the image below:

If the Caption property is set to the Empty value, no caption is displayed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Caption property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-generate-time-rulers-from-view-model-collection/CS/WpfSchedulerTimeRulers/MainWindow.xaml#L16

xml
<ContentControl>
    <dxsch:TimeRuler Caption="{Binding Caption}" ShowMinutes="{Binding ShowMinutes}" TimeZone="{Binding TimeZone}" AlwaysShowTimeDesignator="{Binding AlwaysShowTimeDesignator}"/>
</ContentControl>

See Also

TimeRuler Class

TimeRuler Members

DevExpress.Xpf.Scheduling Namespace