View.Reset 方法

定义

将内置的 Microsoft Outlook 视图重置为原始设置。

public:
 void Reset();
public void Reset ();
Public Sub Reset ()

注解

此方法仅应用于内置 Outlook 视图。

若要正确重置当前视图,必须执行 View.Reset ,然后执行 Apply()。 下面的代码示例演示如何调用的顺序:

Sub ResetView()
    Dim v as Outlook.View
    ' Save a reference to the current view object
    Set v = Application.ActiveExplorer().CurrentView
    ' Reset and then apply the current view
    v.Reset
    v.Apply
End Sub
private void ResetView()
{
    // Save a reference to the current view object    
    Outlook.View v = Application.ActiveExplorer().CurrentView 
        as Outlook.View; 

    // Reset and then apply the current view
    v.Reset();
    v.Apply();
}

适用于