Back to Devexpress

UserInterfaceObject.MenuCaption Property

corelibraries-devexpress-dot-xtrascheduler-dot-userinterfaceobject-d0c9c91a.md

latest2.7 KB
Original Source

UserInterfaceObject.MenuCaption Property

Gets or sets the element’s menu caption.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public virtual string MenuCaption { get; set; }
vb
Public Overridable Property MenuCaption As String

Property Value

TypeDescription
String

A String value which specifies the element’s menu caption.

|

Remarks

Use the MenuCaption property to specify the caption of the menu item which corresponds to the current element.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MenuCaption 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.

winforms-scheduler-custom-scales-in-timeline-view/CS/HideWeekends/CustomTimeScale.cs#L14

csharp
public override string DisplayName { get => "Custom Work Hours"; set => base.DisplayName = value; }
public override string MenuCaption { get => "Custom Work Hours"; set => base.MenuCaption = value; }

winforms-scheduler-custom-scales-in-timeline-view/VB/HideWeekends/CustomTimeScale.vb#L28

vb
Set(ByVal value As String)
    MyBase.MenuCaption = value
End Set

See Also

DisplayName

UserInterfaceObject Class

UserInterfaceObject Members

DevExpress.XtraScheduler Namespace