Function Reference

_OL_ViewFontSet

Sets the properties of the ViewFont object for the specified View object.

#Include <OutlookEX_GUI.au3>
_OL_ViewFontSet($oObject, $iSize = Default, $bBold = Default, $iColor = Default, $iExtendedColor = Default, $bItalic = Default, $bStrikethrough = Default, $bUnderline = Default)

 

Parameters

$oObject Object to set the font properties for. Depending on the view type this can be one of the following:
BusinessCardView: The HeadingsFont property
CalendarView: The DayWeekFont, DayWeekTimeFont or MonthFont property
CardView: The BodyFont or HeadingsFont property
TableView: The AutoPreviewFont, ColumnFont or RowFont property
TimelineView: The ItemFont, LowerScaleFont or UpperScaleFont property
$iSize [optional] Size (in points) of the font
$bBold [optional] True if the font is bold
$iColor [optional] Color of the font. Can be any of the OlColor enumeration
$iExtendedColor [optional] Extended color of the font. Can be any of the OlCategoryColor enumeration
$bItalic [optional] If the font is italicized
$bStrikethrough [optional] If the font is struck through with a horizontal line
$bUnderline [optional] If the font is underlined

 

Return Value

Success: 1
Failure: Returns 0 and sets @error:
    1 - $oObject ist not an object type
    2 - Error setting property Size of the object. @extended is set to the COM error code
    3 - Error setting property Bold of the object. @extended is set to the COM error code
    4 - Error setting property Color of the object. @extended is set to the COM error code
    5 - Error setting property ExtendedColor of the object. @extended is set to the COM error code
    6 - Error setting property Italic of the object. @extended is set to the COM error code
    7 - Error setting property Strikethrough of the object. @extended is set to the COM error code
    8 - Error setting property Underline of the object. @extended is set to the COM error code
    9 - Error saving the new view. @extended is set to the COM error code

 

Remarks

The ViewFont object is used by the following objects to represent font formatting information applied to the text in various portions of a view:
The HeadingsFont property of the BusinessCardView object.
The DayWeekFont, DayWeekTimeFont, and MonthFont properties of the CalendarView object.
The BodyFont and HeadingsFont properties of the CardView object.
The AutoPreviewFont, ColumnFont, and RowFont properties of the TableView object.
The ItemFont, LowerScaleFont, and UpperScaleFont properties of the TimelineView object.

 

Related