LimitSize: Boolean;
The LimitSize property determines whether the available sizes of font are limited when the dialog box opens.
The MinFontSize and MaxFontSize properties are used to set the allowed sizes. The LimitSize property is set to False by default, allowed font sizes are determined by parameters of the selected font.
Executing the example requires a form with the button named Button1 on it and the FontDialog component named FontDialog1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
FontDialog1.MinFontSize := 8;
FontDialog1.MaxFontSize := 18;
FontDialog1.Options.LimitSize := True;
FontDialog1.Execute;
End Sub Button1OnClick;
Clicking the button opens the dialog box of font selection with limited possibility to select font size:
See also:
IFontDialogOptions | IFontDialog.MaxFontSize | IFontDialog.MinFontSize