Property

Method

Event

 

 

SetDefaultFont

Sets the default font name and size.

Syntax

    HRESULT SetDefaultFont(
    BSTR varFontName
    long varFontSize
    BSTR fixedFontName
    long fixedFontSize
    );

Parameters

varFontName

[in] Name of the proportional font.

varFontSize

[in] Size of the proportional font.

fixedFontName

[in] Name of the fixed-width font.

fixedFontSize

[in] Size of the fixed-width font.

Return Values

0 (always)

Sample Codes

JScript

   var objNamo = document.Namo;
objNamo.SetDefaultFont("Arial","20","Courier","20");

 

VBScript

   document.Namo.SetDefaultFont "Arial","20","Courier","20"