TimelineView.ItemFont プロパティ (Outlook)

TimelineView オブジェクトの Outlook アイテムを表示するときに使用されるフォントを表す ViewFont オブジェクトを取得します。 値の取得のみ可能です。

構文

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

関連項目

TimelineView オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。