TableView.RowFont プロパティ (Outlook)

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

構文

RowFont

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

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

Private Sub IncreaseRowFontSize() 
 
 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 
 
 
 
 ' Increment the Size property of the 
 
 ' ViewFont object obtained from the 
 
 ' RowFont property, but only 
 
 ' if the font is less than 24 points 
 
 ' in size. 
 
 If objTableView.RowFont.Size < 24 Then 
 
 objTableView.RowFont.Size = _ 
 
 objTableView.RowFont.Size + 1 
 
 
 
 ' Save the table view. 
 
 objTableView.Save 
 
 End If 
 
 End If 
 
End Sub

関連項目

TableView オブジェクト

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

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