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

TcxSchedulerTimeGridView.GetMajorUnitDisplayText(TDateTime,TDateTime,TcxSchedulerTimeGridScaleTextType) Method

Returns the title of the specified major time scale’s unit as a formatted string.

#Declaration

Delphi
function GetMajorUnitDisplayText(const AStart: TDateTime; const AFinish: TDateTime; ATextType: TcxSchedulerTimeGridScaleTextType): string;

#Parameters

Name Type
AStart TDateTime
AFinish TDateTime
ATextType TcxSchedulerTimeGridScaleTextType

#Returns

Type
string

#Remarks

Use the GetMajorUnitDisplayText method to get the date string formatted in accordance with the ATextType format.

The AStart and AFinish parameters specify the date, which will be returned by the method as a formatted date string.

The ATextType parameter specifies the date format to be applied.

See Also