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

TdxRangeControlDateTimeScale.IncDate(Double,Int64) Method

Retuns the viewport coordinate of the next date/time value tickmark corresponding to the beginning of the next whole time interval equal to the measurement unit used to graduate the scale.

#Declaration

Delphi
function IncDate(const AValue: Double; AIncrementValue: Int64 = 1): Double; virtual;

#Parameters

Name Type
AValue Double
AIncrementValue Int64

#Returns

Type
Double

#Remarks

Normally, this function supports the internal infrastructure and is not intended to be used directly from your code. The IncDate function is called internally by the range control to determine viewport tickmark positions on the scale.

The AValue parameter specifies the viewport coordinate of the original date/time value.

The AIncrementValue parameter specifies the number of measurement units by which AValue should be incremented.

If you are implementing a custom date/time scale, you may need to override the IncDate function in a TdxRangeControlDateTimeScale descendant in order to graduate the scale in custom measurement units.

See Also