Поделиться через


HeaderFooter.Format Property

Returns or sets the format for the automatically updated date and time. Read/write.

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

Syntax

'Declaration
Property Format As PpDateTimeFormat
    Get
    Set
'Usage
Dim instance As HeaderFooter
Dim value As PpDateTimeFormat

value = instance.Format

instance.Format = value
PpDateTimeFormat Format { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PpDateTimeFormat

Remarks

The Format property applies only to HeaderFooter objects that represent a date and time (returned from the HeadersFooters collection by the DateAndTime property).

Make sure that the date and time are set to be updated automatically (not displayed as fixed text) by setting the UseFormat property to true.

The Format property value can be one of these PpDateTimeFormat constants.

ppDateTimeddddMMMMddyyyy

ppDateTimedMMMMyyyy

ppDateTimedMMMyy

ppDateTimeFormatMixed

ppDateTimeHmm

ppDateTimehmmAMPM

ppDateTimeHmmss

ppDateTimehmmssAMPM

ppDateTimeMdyy

ppDateTimeMMddyyHmm

ppDateTimeMMddyyhmmAMPM

ppDateTimeMMMMdyyyy

ppDateTimeMMMMyy

ppDateTimeMMyy

See Also

Reference

HeaderFooter Interface

HeaderFooter Members

Microsoft.Office.Interop.PowerPoint Namespace