Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetCustomFont.Pitch Property

Specifies whether the characters of the font have the same width.

#Declaration

Delphi
property Pitch: TFontPitch read; write; default fpDefault;

#Property Value

Type Default
TFontPitch fpDefault

#Remarks

Each font typeface has an associated pitch. All characters in fixed-pitch fonts have the same width. The characters in variable-pitch fonts have different widths. Fixed pitch fonts are generally used to display source code, because they allow the indentation to line up properly. Variable pitch fonts are generally used to give text a more natural appearance.

The possible Pitch property values are listed below:

Value Meaning
fpDefault The font pitch is set to the default value, which depends on the font’s typeface name assigned by using the Name property.
fpFixed The font pitch is set to Fixed. All font characters have the same width.
fpVariable The font pitch is set to Variable. Font characters have varying widths.

The default value of the Pitch property is fpDefault.

See Also