Skip to content

Latest commit

 

History

History
89 lines (44 loc) · 1.68 KB

Outlook.TimelineView.ItemFont.md

File metadata and controls

89 lines (44 loc) · 1.68 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
TimelineView.ItemFont property (Outlook)
vbaol11.chm2669
vbaol11.chm2669
Outlook.TimelineView.ItemFont
7f01e8b1-cd9e-eb19-e481-35b98029320c
06/08/2017
medium

TimelineView.ItemFont property (Outlook)

Returns a ViewFont object that represents the font used when displaying Outlook items in the TimelineView object. Read-only.

Syntax

expression. ItemFont

expression A variable that represents a TimelineView object.

Example

The following Visual Basic for Applications (VBA) sample increments the value of the Size property for the ViewFont object returned from the ItemFont property for the current TimelineView object.

Private Sub IncreaseItemFontSize() 
 
 Dim objTimelineView As TimelineView 
 
 
 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olTimelineView Then 
 
 
 
 ' Obtain a TimelineView object reference for the 
 
 ' current timeline view. 
 
 Set objTimelineView = _ 
 
 Application.ActiveExplorer.CurrentView 
 
 
 
 ' Increment the Size property of the 
 
 ' ViewFont object obtained from the 
 
 ' ItemFont property, but only 
 
 ' if the font is less than 24 points 
 
 ' in size. 
 
 If objTimelineView.ItemFont.Size < 24 Then 
 
 objTimelineView.ItemFont.Size = _ 
 
 objTimelineView.ItemFont.Size + 1 
 
 
 
 ' Save the timeline view. 
 
 objTimelineView.Save 
 
 End If 
 
 End If 
 
End Sub

See also

TimelineView Object

[!includeSupport and feedback]