Vcl.ComCtrls.TCommonCalendar.BoldDays
Delphi
procedure BoldDays(Days: array of LongWord; var MonthBoldInfo: LongWord);
C++
void __fastcall BoldDays(unsigned *Days, const int Days_High, unsigned &MonthBoldInfo);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCommonCalendar |
説明
OnGetMonthInfo イベントハンドラで使用する日付の集合をエンコードします。
BoldDays メソッドを使用すると、現在の月のどの日を太字にするかを指定できます。BoldDays によって返された値は、OnGetMonthInfo イベントハンドラの MonthBoldInfo パラメータに割り当てることができます。
Days は太字にする日を表す符号なし整数配列です。
MonthBoldInfo は、Days 配列に渡された値をエンコードしたものを返します。この値は、OnGetMonthInfo イベントハンドラの MonthBoldInfo パラメータに割り当てることができます。または、この引数用に MonthBoldInfo パラメータを渡すことができます。MonthBoldInfo 変数を直接使用しないようにしてください。
たとえば、毎月の 1 日と 8 日をエンコードするには、
BoldDays([1,8], MonthBoldInfo);
unsigned bolddays[2] = {1,2};
BoldDays(bolddays, MonthBoldInfo);