IconView.IconPlacement 属性 (Outlook)

返回或设置一个 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。