次の方法で共有


CardView Interface

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<GuidAttribute("00063098-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(CardViewClass))> _
Public Interface CardView _
    Inherits _CardView
'Usage
Dim instance As CardView
[GuidAttribute("00063098-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(CardViewClass))]
public interface CardView : _CardView

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 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.

See Also

Reference

CardView Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a View

How to: Add Fields to a View