次の方法で共有


TableView.GridLineStyle プロパティ (Outlook)

TableView オブジェクトの枠線に使用される線のスタイルを表す OlGridLineStyle クラスの定数を設定します。 値の取得と設定が可能です。

構文

GridLineStyle

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

次の Visual Basic for Applications (VBA) の例では、小さな点線のグリッドを表示するのには、現在の TableView オブジェクトの GridLineStyle プロパティを設定します。

Private Sub SetDottedGridLines() 
 
 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 
 
 
 
 With objTableView 
 
 ' Set the GridLineStyle property so that 
 
 ' the grid in the table view are 
 
 ' displayed with thin dotted lines. 
 
 .GridLineStyle = olGridLineSmallDots 
 
 
 
 ' Save the table view. 
 
 .Save 
 
 End With 
 
 End If 
 
End Sub

関連項目

TableView オブジェクト

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

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