FMX.Calendar.Style.TStyledCalendar.TryFindDayItem
Delphi
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.