System.Windows.Forms.FontDialog.MaxSize Property

Gets or sets the maximum point size a user can select.

Syntax

[System.ComponentModel.DefaultValue(0)]
public int MaxSize { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

In order for the maximum and minimum size settings to take effect, FontDialog.MaxSize must be greater than FontDialog.MinSize, and both must be greater than 0.

Attempts to set this property to values less than 0 will result in a value of 0 being used. If you set FontDialog.MaxSize to a value less than FontDialog.MinSize, FontDialog.MinSize is set to FontDialog.MaxSize. The effect of setting FontDialog.MinSize and FontDialog.MaxSize to the same values is to limit the size selection to a single font size.

When the point size is 0, there are no font size limits.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0