編輯

共用方式為


View Interface

Definition

Represents a customizable view used to sort, group, and view data.

public interface class View
[System.Runtime.InteropServices.Guid("00063095-0000-0000-C000-000000000046")]
public interface View
Public Interface View
Attributes

Remarks

The View object allows you to create customizable views that allow you to better sort, group and ultimately view data of all different types. There are a variety of different view types that provide the flexibility needed to create and maintain your important data.

Views are defined and customized using the View object's XML property. The XML property allows you to create and set a customized XML schema that defines the various features of a view.

Use Views(index), where index is the name of the View object or its ordinal value, to return a single View object.

Use the Add(String, OlViewType, OlViewSaveOption) method of the Views collection to create a new view.

Always use Save() to save a view after you change any property of the view.

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

Filter

Returns or sets a String (string in C#) value that represents the filter for a view. Read/write.

Language

Returns or sets a String (string in C#) value that represents the language setting for the object that defines the language used in the menu. Read/write.

LockUserChanges

Returns or sets a Boolean (bool in C#) value that indicates whether a user can modify the settings of the current view. Read/write.

Name

Returns or sets a String (string in C#) value that represents the display name for the object. Read/write.

Parent

Returns the parent Object of the specified object. Read-only.

SaveOption

Returns an OlViewSaveOption constant that specifies the folders in which the specified view is available and the read permissions attached to the view. Read-only.

Session

Returns the NameSpace object for the current session. Read-only.

Standard

Returns a Boolean (bool in C#) that specifies whether or not the view is a built-in Outlook view. Read-only

ViewType

Returns an OlViewType constant representing the view type of a View object. Read-only.

XML

Returns or sets a String (string in C#) value that specifies the XML definition of the current view. Read/write.

Methods

Apply()

Applies the view to the Microsoft Outlook user interface.

Copy(String, OlViewSaveOption)

Creates a new instance of a View object.

Delete()

Deletes an object from the collection.

GoToDate(DateTime)

Changes the date used by the current view to display information.

Reset()

Resets a built-in Microsoft Outlook view to its original settings.

Save()

Saves the view, or saves the changes to a view.

Applies to