共用方式為


Outlook (的 IconView.IconPlacement 屬性)

會傳回或設定 OlIconViewPlacement 值,決定圖示在 IconView 物件中的放置方式。 讀取/寫入。

語法

expressionIconPlacement

表達 代表 IconView 物件的變數。

註解

如果 IconViewType 屬性的值設定為 olIconViewList,則此屬性的值會自動設定為 olIconSortAndAutoArrange

範例

下列的 Visual Basic for Applications (VBA) 範例將目前的 IconView 物件設定為將 Outlook 項目顯示為經過排序且自動排列的大型圖示組。

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 支援與意見反應