Outlook) (TimelineView.ItemFont 屬性
會傳回 ViewFont 物件,代表在 TimelineView 物件中顯示 Outlook 專案時所使用的字型。 唯讀。
語法
expression。 ItemFont
表達 代表 TimelineView 物件的變數。
範例
下列 Visual Basic for Applications (VBA) 範例會針對從目前TimelineView物件的ItemFont屬性傳回的ViewFont物件,遞增Size屬性的值。
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
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。