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


RemoveDateAndTime Class

Remove Date and Time from Annotations.When the object is serialized out as xml, its qualified name is w:removeDateAndTime.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.RemoveDateAndTime

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class RemoveDateAndTime _
    Inherits OnOffType
'Usage
Dim instance As RemoveDateAndTime
public class RemoveDateAndTime : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.15.1.67 removeDateAndTime (Remove Date and Time from Annotations)

This element specifies that the date and time information shall be removed from all annotations which are present in the current document when it is saved. Annotations store this information in the date attribute on the annotation's XML element.

If this element is omitted, then date information shall not be removed when the document is saved. If the removePersonalInformation element is not turned on, then this setting shall be ignored.

[Example: Consider a WordprocessingML document that must not save date and time information on annotations in the document content. This state is specified using the following WordprocessingML in the document settings:

<w:settings>
…
<w:removePersonalInformation w:val="true" />
<w:removeDateAndTime w:val="true" />
…
</w:settings>

The removeDateAndTime element's val attribute has a value of true specifying that all annotations in the document must have and date and time information removed before they are saved by omitting their date attributes. end example]

Parent Elements

settings (§17.15.1.78)

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RemoveDateAndTime Members

DocumentFormat.OpenXml.Wordprocessing Namespace