Returns or sets font styles.
Object.Font [ = fontFont ]
The Font property syntax has the following parts:
Name |
Type |
Description |
Object |
ACommonDialog |
ACommonDialog object |
fontFont |
AFont |
An integer specifying the font of the selected object. |
The following example will set the Font to be the same as the button:
cdlg1.font=abtn1.font ! initialize Font dialog with abtn1's font
if (cdlg1.ShowFont = acdlgRetValOk) then ! prompt user for new font setting
abtn1.font=cdlg1.font ! set new font
Bold, FontName, FontOptions, FontSize, FontSizeMax, FontSizeMin, Italic, Strikeout, Underline