編輯

共用方式為


_CalendarView Interface

Definition

This is a primary interface in a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this primary interface only when the method you want to use shares the same name as an event of the COM object; in this case, cast to this interface to call the method, and cast to the latest events interface to connect to the event. Otherwise, use the .NET interface that is derived from the COM coclass to access methods, properties, and events of the COM object. For information about the COM object, see CalendarView.

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

Properties

Application

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

AutoFormatRules

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

BoldDatesWithItems

Returns or sets a Boolean (bool in C#) value that indicates whether days that contain Outlook items should be displayed in bold within the Date Navigator for the CalendarView object. Read/write.

BoldSubjects

Returns or sets a Boolean (bool in C#) value that indicates whether the subject information for Outlook items is displayed in bold within a CalendarView object. Read/write

CalendarViewMode

Returns or sets an OlCalendarViewMode that determines the current view mode of the CalendarView object. Read/write.

Class

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

DaysInMultiDayMode

Returns or sets an Integer (int in C#) value that represents the number of consecutive days displayed in the CalendarView object. Read/write

DayWeekFont

This object, member, or enumeration is deprecated and is not intended to be used in your code.

DayWeekTimeFont

This object, member, or enumeration is deprecated and is not intended to be used in your code.

DayWeekTimeScale

Returns or sets an OlDayWeekTimeScale constant that represents the scale used to represent time periods in a CalendarView object. Read/write.

DisplayedDates

Returns an Object array containing strings that represent the days displayed in a CalendarView object. Read-only.

EndField

Returns or sets a String (string in C#) value that represents the name of the property that ends the time duration for Outlook items displayed in the CalendarView object. Read/write.

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 view. Read/write.

LockUserChanges

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

MonthFont

This object, member, or enumeration is deprecated and is not intended to be used in your code.

MonthShowEndTime

Returns or sets a Boolean (bool in C#) value that indicates whether end times for Outlook items are displayed in the CalendarView object. 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.

SelectedEndTime

Returns a DateTime value that represents the end time of a selection in the CalendarView object. Read-only.

SelectedStartTime

Returns a DateTime value that represents the start time of a selection in the CalendarView object. Read-only.

Session

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

Standard

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

StartField

Returns or sets a String (string in C#) value that represents the name of the property that starts the time duration for Outlook items displayed in the CalendarView object. Read/write.

ViewType

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

XML

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

Methods

Apply()

Applies the CalendarView object to the current view.

Copy(String, OlViewSaveOption)

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

Delete()

Deletes an object from a 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