Font.Based on description font

Syntax:

New Font(<FontName>, <Size>, <Bold>, <Italics>, <Underscore>, <StrikeOut>, <Scale>)

Parameters:

<FontName> (optional)

Type: String.
System's designation for the font. If the parameter is not assigned, then it cannot be changed as regards the style.
Default value: Empty string.

<Size> (optional)

Type: Number.
Font size. If the parameter is not indicated, then it cannot be change as regards the style.
Default value: -1.

<Bold> (optional)

Type: Boolean.
Boldfaced font flag. If the parameter is not indicated, then it cannot be change as regards the style.

<Italics> (optional)

Type: Boolean.
Italic font flag. If the parameter is not indicated, then it cannot be change as regards the style.

<Underscore> (optional)

Type: Boolean.
Underscored font flag. If the parameter is not indicated, then it cannot be change as regards the style.

<StrikeOut> (optional)

Type: Boolean.
Struck out font flag. If the parameter is not indicated, then it cannot be change as regards the style.

<Scale> (optional)

Type: Number.
Sets value for the Scale property.
Default value: 100.

Description:

Creates a font from the separate parameters.

Example:

HeaderFont = New Font("Verdana", 20,True);

    

1C:Enterprise Developer's Community