FMX.Calendar.Style.TStyledCalendar.TryFindDayItem

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function TryFindDayItem(const ADateTime: TDateTime): TListBoxItem;

C++

Fmx::Listbox::TListBoxItem* __fastcall TryFindDayItem(const System::TDateTime ADateTime);

Properties

Type Visibility Source Unit Parent
function public
FMX.Calendar.Style.pas
FMX.Calendar.Style.hpp
FMX.Calendar.Style TStyledCalendar

Description

Returns the list box item of the Days list box that matches the specified date, or nil if no visible item matches the specified date.

You can use TryFindDayItem to change for instance the style, font, or color of day; for example, you can use TryFindDayItem to highLight weekend days.

See Also