FormatDefineStyleFont

Syntax

FormatDefineStyleFont [.Points = number] [, .Underline = number] [, .Color = number] [, .Strikethrough = number] [, .Superscript = value] [, .Subscript = value] [, .Hidden = number] [, .SmallCaps = number] [, .AllCaps = number] [, .Spacing = value] [, .Position = number or text] [, .Kerning = number] [, .KerningMin = number or text] [, .Default] [, .Tab = number] [, .Font = text] [, .Bold = number] [, .Italic = number]

Remarks

Sets character formats for either the current style or the style specified in a FormatStyle instruction containing the .Define argument. Note that when modifying the style specified with FormatStyle, the FormatDefineStyleFont instruction follows the FormatStyle instruction.

The arguments for the FormatDefineStyleFont statement correspond to options in the Font dialog box (Format menu). For argument descriptions, see FormatFont.

Example

This example defines the character formatting of the "TestMe" style as 10-point, bold, and small caps. Word creates the style if it does not already exist.


FormatStyle .Name = "TestMe", .Define
FormatDefineStyleFont .Points = "10", .Bold = 1, .SmallCaps = 1

See Also

FormatFont, FormatStyle