ContentControl.DateCalendarType Property (2007 System)
Gets or sets the type of calendar that is displayed in a ContentControl that represents a date picker.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Property DateCalendarType As WdCalendarType
'Usage
Dim instance As ContentControl
Dim value As WdCalendarType
value = instance.DateCalendarType
instance.DateCalendarType = value
public WdCalendarType DateCalendarType { get; set; }
public:
property WdCalendarType DateCalendarType {
WdCalendarType get ();
void set (WdCalendarType value);
}
public function get DateCalendarType () : WdCalendarType
public function set DateCalendarType (value : WdCalendarType)
Property Value
Type: WdCalendarType
One of the WdCalendarType values. The default depends on the current locale setting of the operating system.
Exceptions
Exception | Condition |
---|---|
COMException | The Type property does not have the value wdContentControlDate. |
Remarks
This property can be used only if the ContentControl represents a date picker.
The default calendar type depends on the locale setting of the operating system. For example, the default calendar type for the locale English (United States) is wdCalendarWestern.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.