Skip to content

Latest commit

 

History

History
76 lines (40 loc) · 1.78 KB

Outlook.IconView.Standard.md

File metadata and controls

76 lines (40 loc) · 1.78 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
IconView.Standard property (Outlook)
vbaol11.chm2570
vbaol11.chm2570
Outlook.IconView.Standard
13816c3b-a35f-30cf-c63e-fb7d52a0a942
06/08/2017
medium

IconView.Standard property (Outlook)

Returns a Boolean value that indicates whether the IconView object is a built-in Outlook view. Read-only.

Syntax

expression. Standard

expression A variable that represents an IconView object.

Remarks

The Reset method can only be used on a view if the value of this property is set to True.

Example

The following Visual Basic for Applications (VBA) example enumerates through the Views collection of the current Folder object, using the Standard property to determine if a View object is a built-in Outlook view. If the View object is a built-in Outlook view, the sample calls the Reset method to reset the view to its default settings. Otherwise, the sample uses the Delete method to delete the view.

Private Sub RemoveAllViewCustomization() 
 
 Dim objView As View 
 
 
 
 ' Enumerate each View object in the Views collection 
 
 ' of the current Folder object. 
 
 For Each objView In Application.ActiveExplorer.CurrentFolder.Views 
 
 ' If the View object is a built-in Outlook view, reset 
 
 ' the view to its default settings. If the View object 
 
 ' is a custom view, delete it. 
 
 If objView.Standard Then 
 
 objView.Reset 
 
 Else 
 
 objView.Delete 
 
 End If 
 
 Next 
 
End Sub

See also

IconView Object

[!includeSupport and feedback]