共用方式為


MonthCalendar Class

Definition

Represents a Windows Forms MonthCalendar that can be added to a Microsoft Office Word document.

public ref class MonthCalendar : System::Windows::Forms::MonthCalendar
[System.ComponentModel.DefaultEvent("DateChanged")]
[System.ComponentModel.DefaultProperty("SelectionRange")]
[System.ComponentModel.ToolboxItem(false)]
public class MonthCalendar : System.Windows.Forms.MonthCalendar
[<System.ComponentModel.DefaultEvent("DateChanged")>]
[<System.ComponentModel.DefaultProperty("SelectionRange")>]
[<System.ComponentModel.ToolboxItem(false)>]
type MonthCalendar = class
    inherit MonthCalendar
Public Class MonthCalendar
Inherits MonthCalendar
Inheritance
MonthCalendar
Attributes

Remarks

The Microsoft.Office.Tools.Word.Controls.MonthCalendar is different from a System.Windows.Forms.MonthCalendar. The Microsoft.Office.Tools.Word.Controls.MonthCalendar has additional members that enable it to be added to a Word document and that give it additional methods and properties.

Do not use the constructor to create a new MonthCalendar. Use the AddMonthCalendar method to add a new MonthCalendar to a document.

Properties

AltHTML
Automation
Bottom

Gets the distance, in points, between the bottom edge of the MonthCalendar and the top edge of the document.

Height

Gets or sets the height of the MonthCalendar.

InlineShape

Gets the underlying InlineShape of the MonthCalendar.

Left

Gets or sets the distance, in points, between the left edge of the MonthCalendar and the left edge of the document.

Right

Gets the distance, in points, between the right edge of the MonthCalendar and the left edge of the document.

Shape

Gets the underlying Shape of the MonthCalendar.

Top

Gets or sets the distance, in points, between the top edge of the MonthCalendar and the top edge of the document.

Width

Gets or sets the width of the MonthCalendar in points.

Methods

Activate()

Activates the MonthCalendar.

Delete()

Deletes a dynamically created MonthCalendar from the document and removes it from the ControlCollection.

Select()

Selects the MonthCalendar.

SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
SetVisibleCore(Boolean)

Applies to