Skip to content

Latest commit

 

History

History
119 lines (63 loc) · 3.11 KB

Outlook.ViewFont.md

File metadata and controls

119 lines (63 loc) · 3.11 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ViewFont object (Outlook)
vbaol11.chm3188
vbaol11.chm3188
Outlook.ViewFont
cbd7c6ce-f49a-1627-0ad9-a019911fb47b
06/08/2017
medium

ViewFont object (Outlook)

Represents the font used when formatting text in various portions of a view.

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:

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 
 

Properties

Name
Application
Bold
Class
Color
ExtendedColor
Italic
Name
Parent
Session
Size
Strikethrough
Underline

See also

Outlook Object Model Reference

[!includeSupport and feedback]