Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

OlTimeStyle Enumeration

Specifies how time values are displayed and how entries of time values are interpreted by a time control.

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

[GuidAttribute("4FD8B708-E730-49B5-BDD3-B807F48E5B83")]
public enum OlTimeStyle

Member nameDescription
olTimeStyleTimeOnlyThe drop-down portion of the time control displays only time values with the interval set by the OlkTimeControl.IntervalTime property.
olTimeStyleTimeDurationThe drop-down portion of the time control displays time values starting from the ReferenceTime and uses the OlkTimeControl.IntervalTime property as the increment. The edit box of the time control displays the duration from the ReferenceTime to the selected time.
olTimeStyleShortDurationThe drop-down portion of the time control displays only duration values with the interval set by the _OlkTimeControl.IntervalTime property.

Use the time control with the olTimeStyleShortDuration style for duration fields, such as the Duration of a JournalItem. Use the time control with the olTimeStyleTimeDuration style for the end time of an appointment item. Use the time control with the olTimeStyleTimeOnly style for the start time of an appointment item.

Show:
© 2015 Microsoft