IconView.IconViewType プロパティ (Outlook)

Outlook アイテムを IconView オブジェクトに表示する方法を決定する OlIconViewType クラスの定数を設定します。 値の取得と設定が可能です。

構文

IconViewType

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

注釈

このプロパティの値が olIconSortAndAutoArrange に設定されている場合、 IconPlacement プロパティの値は自動的に olIconSortAndAutoArrange に設定します。

次の Visual Basic for Applications (VBA) の例では、大きいアイコンの並べ替えられた、自動配置の設定されている Outlook アイテムを表示するのには、現在の IconView オブジェクトを構成します。

Sub ConfigureIconView() 
 
 Dim objIconView As IconView 
 
 
 
 ' Check if the current view is an icon view. 
 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olIconView Then 
 
 
 
 ' Obtain a IconView object reference for the 
 
 ' current icon view. 
 
 Set objIconView = _ 
 
 Application.ActiveExplorer.CurrentView 
 
 
 
 With objIconView 
 
 ' Display items in the icon view as a 
 
 ' set of large icons. 
 
 .IconViewType = olIconLarge 
 
 
 
 ' Sort and auto arrange the items 
 
 ' within the icon view. 
 
 .IconPlacement = olIconSortAndAutoArrange 
 
 
 
 ' Save the icon view. 
 
 .Save 
 
 End With 
 
 End If 
 
 
 
End Sub

関連項目

IconView オブジェクト

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

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