Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerDataStorage.GetLabelColor(Object) Method

Obtains the color of the label by its ID.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public Color GetLabelColor(
    object labelId
)

#Parameters

Name Type Description
labelId Object

An object that is the label’s identifier available by the PersistentObject.Id property of the AppointmentLabel object.

#Returns

Type Description
Color

A Color value that is the label’s color.

#Remarks

Use the GetLabelColor method to obtain the color of a label with a known ID.

If the label with the specified ID is not found, a default value for the Color is returned.

See Also