TableView.AutoPreviewFont プロパティ (Outlook)

TableView オブジェクトの Outlook アイテムを自動的にプレビューするときに使用されるフォントを表す ViewFont オブジェクトを取得します。 値の取得のみ可能です。

構文

AutoPreviewFont

TableView オブジェクトを表す変数。

次のVisual Basic for Applications (VBA) サンプルでは、現在の TableView オブジェクトの AutoPreviewFont プロパティから返される ViewFont オブジェクトの Size プロパティの値をデクリメントします。

Private Sub ReduceAutoPreviewFontSize() 
 
 Dim objTableView As TableView 
 
 
 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olTableView Then 
 
 
 
 ' Obtain a TableView object reference for the 
 
 ' current table view. 
 
 Set objTableView = _ 
 
 Application.ActiveExplorer.CurrentView 
 
 
 
 ' Decrement the Size property of the 
 
 ' ViewFont object obtained from the 
 
 ' AutoPreviewFont property, but only 
 
 ' if the font is 6 points or larger. 
 
 If objTableView.AutoPreviewFont.Size > 5 Then 
 
 objTableView.AutoPreviewFont.Size = _ 
 
 objTableView.AutoPreviewFont.Size - 1 
 
 
 
 ' Save the table view. 
 
 objTableView.Save 
 
 End If 
 
 End If 
 
End Sub

関連項目

TableView オブジェクト

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

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