LimitSize: Boolean;
The LimitSize property indicates whether the available sizes of font are limited when the dialog is called.
The MinFontSize and MaxFontSize properties are used to set the acceptable sizes. By default the LimitSize property is set to False, font available 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 of font selection with limited possibility to select font size:
See also:
IFontDialogOptions | IFontDialog.MaxFontSize | IFontDialog.MinFontSize