編輯

共用方式為


CardView Interface

Definition

Represents a view that displays Outlook items as a series of index cards.

public interface class CardView : Microsoft::Office::Interop::Outlook::_CardView
[System.Runtime.InteropServices.Guid("00063098-0000-0000-C000-000000000046")]
public interface CardView : Microsoft.Office.Interop.Outlook._CardView
Public Interface CardView
Implements _CardView
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _CardView.

The CardView object, derived from the View object, allows you to create customizable views that allow you to display Outlook items as index cards.

Outlook provides several built-in CardView objects, and you can also create custom CardView objects. Use the Add(String, OlViewType, OlViewSaveOption) method of the Views collection to add a new CardView to a Folder object. Use the Standard property to determine if an existing CardView object is built-in or custom.

You can configure how Outlook items appear within the CardView object. Use the MultiLineFieldHeight property to specify the number of lines used to display multi-line text in each card, the HeadingsFont property to specify the font used to display heading text on each card, and the BodyFont property to specify the font used to display body text on each card. Use the AllowInCellEditing property to allow editing of Outlook item property values in the view, and the ShowEmptyFields property to display empty Outlook item properties in the view. Use the Filter property to determine which Outlook items to display in the view, the ViewFields collection to specify the Outlook item properties to display in each card, and the SortFields collection to specify the Outlook item properties by which Outlook items are sorted in the view.

The definition for each CardView object is stored in Extensible Markup Language (XML) format. Use the XML property to work with the XML definition for the CardView object.

Use the Apply() method to apply any changes made to the CardView object to the current view. Use the Save() method to persist any changes made to the CardView object. Use the LockUserChanges property to allow or prevent changes to the user interface for the view.

You can change built-in CardView objects, but you cannot delete them. Use the Delete() method to delete a custom CardView object. Use the Reset() method to reset the properties of a built-in CardView object to their default values.

Properties

AllowInCellEditing

Returns or sets a Boolean (bool in C#) value that determines whether in-cell editing is allowed in the CardView object. Read/write.

(Inherited from _CardView)
Application

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

(Inherited from _CardView)
AutoFormatRules

Returns an AutoFormatRules object that represents the set of formatting rules applicable to the CardView object. Read-only.

(Inherited from _CardView)
BodyFont

Returns a ViewFont object that represents the font used to display the body of each card in the CardView object. Read-only.

(Inherited from _CardView)
Class

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

(Inherited from _CardView)
Filter

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

(Inherited from _CardView)
HeadingsFont

Returns a ViewFont object that represents the font used to display the heading of each card in the CardView object. Read-only.

(Inherited from _CardView)
Language

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

(Inherited from _CardView)
LockUserChanges

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

(Inherited from _CardView)
MultiLineFieldHeight

Returns or sets an Integer (int in C#) value that determines the minimum number of lines for multiline fields displayed in the CardView object. Read/write.

(Inherited from _CardView)
Name

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

(Inherited from _CardView)
Parent

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

(Inherited from _CardView)
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.

(Inherited from _CardView)
Session

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

(Inherited from _CardView)
ShowEmptyFields

Returns or sets a Boolean (bool in C#) value that determines if empty fields are displayed for cards in the CardView object. Read/write.

(Inherited from _CardView)
SortFields

Returns an OrderFields object that represents the set of fields by which the items displayed in the CardView object are ordered. Read-only.

(Inherited from _CardView)
Standard

Returns a Boolean (bool in C#) value that indicates whether the CardView object is a built-in Outlook view. Read-only.

(Inherited from _CardView)
ViewFields

Returns a ViewFields object that represents the set of fields with which Outlook items are displayed in the CardView object. Read-only.

(Inherited from _CardView)
ViewType

Returns an OlViewType constant that indicates the view type of the view. Read-only.

(Inherited from _CardView)
Width

Returns or sets an Integer (int in C#) value indicating the width (in characters) of cards in the CardView object. Read/write.

(Inherited from _CardView)
XML

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

(Inherited from _CardView)

Methods

Apply()

Applies the CardView object to the current view.

(Inherited from _CardView)
Copy(String, OlViewSaveOption)

Creates a new View object based on the existing CardView object.

(Inherited from _CardView)
Delete()

Deletes an object from a collection.

(Inherited from _CardView)
GoToDate(DateTime)

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

(Inherited from _CardView)
Reset()

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

(Inherited from _CardView)
Save()

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

(Inherited from _CardView)

Applies to