次の方法で共有


_OlkTimeControl.ReferenceTime Property

Returns or sets a DateTime that specifies a reference time used for the olTimeStyleTimeDuration style setting on the time control. Read/write.

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

Syntax

'Declaration
<DispIdAttribute()> _
Property ReferenceTime As DateTime
    Get
    Set
'Usage
Dim instance As _OlkTimeControl
Dim value As DateTime

value = instance.ReferenceTime

instance.ReferenceTime = value
[DispIdAttribute()]
DateTime ReferenceTime { get; set; }

Property Value

Type: System.DateTime

Remarks

The default value is 12/30/1899.

When Style is olTimeStyleTimeDuration, the date control displays the value of ReferenceTime as the first selectable time value, shows additional intervals (specified by IntervalTime) starting from the ReferenceTime value, and shows the duration of an event.

The default value for ReferenceTime is 30 Dec 1899 12:00 AM. In this case, the time control will display 30 Dec 1899 12:00 AM as the first selectable time. A value of 60 for IntervalTime will mark 30 Dec 1899 1:00 AM as the first interval.

See Also

Reference

_OlkTimeControl Interface

_OlkTimeControl Members

Microsoft.Office.Interop.Outlook Namespace