Skip to main content
Table of Contents

TTMSFNCCustomPlanner.DateTimeToPosition Method

Converts a date and time to a visible planner position.

API unit family: TMSFNCPlanner Declaring type: TTMSFNCCustomPlanner

Syntax

FMX.TMSFNCPlanner.hppPascalC++
function DateTimeToPosition(ADateTime: TDateTime; AEndDateTime: Boolean = False; ACheckBounds: Boolean = True): Integer; virtual;
virtual int __fastcall DateTimeToPosition(System::TDateTime ADateTime, bool AEndDateTime = false, bool ACheckBounds = true);

Parameters

Name Description
ADateTime Date and time to locate.
AEndDateTime When True, resolves the value as an end boundary.
ACheckBounds When True, validates the result against the visible planner range.

Returns

The visible position index for the date and time.