Back to Devexpress

UserInterfaceObject.DisplayName Property

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

latest2.5 KB
Original Source

UserInterfaceObject.DisplayName Property

Gets or sets the text which identifies an element.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

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

Property Value

TypeDescription
String

A String value which identifies an element.

|

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

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#L18

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

See Also

UserInterfaceObject Class

UserInterfaceObject Members

DevExpress.XtraScheduler Namespace