Xbasic
Office::Excel2003DocumentDefaultFont Method
Syntax
.DefaultFont as L (FontName as C, FontSize as N)
Arguments
- FontNameCharacter
A character variable that will be set to the default font name.
- FontSizeNumeric
A numeric variable that will be set to the default font size.
Returns
- resultLogical
Returns .T. if operation succeeds, otherwise .F.. The Office::Excel2003Document CallResult object will contain additional information if the operation fails.
Description
Get the default font name and size for this workbook.
Example
dim sheet as Office::Excel2003Document dim font as P dim font.name as c dim font.size as n ? sheet.defaultFont(font.name,font.size) = .T. ? font = name = "Arial" size = 10
See Also