PitchAndFamily property

Microsoft Visio Developer Reference

PitchAndFamily property

   Example   

Returns the pitch and family code for a Font object.

Version added

4.0

Syntax

intRet = object.PitchAndFamily

intRet

Integer. The pitch and family code of the Font object.

object

Required. An expression that returns a Font object.

Remarks

Use the PitchAndFamily property to specify a font's pitch and assign it to a font family. You can specify pitch, family, or both. To specify both, use an or expression. Font families are used to specify a font when an exact typeface is unavailable.

The possible values of the PitchAndFamily property correspond to those of the lfPitchAndFamily member of the Windows LOGFONT data structure. For details, search for "LOGFONT" in the Microsoft Platform SDK on the Microsoft Developer Network (MSDN) Web site.