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


DocumentId Class

Defines the DocumentId Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is w14:docId.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Office2010.Word.DocumentId

Namespace:  DocumentFormat.OpenXml.Office2010.Word
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class DocumentId _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As DocumentId
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class DocumentId : OpenXmlLeafElement

Remarks

2.3.1 docId

Target namespace: https://schemas.microsoft.com/office/word/2009/2/wordml

A CT_LongHexNumber element that specifies an arbitrary identifier for the context of the paragraph identifiers in the document. Values MUST be greater than 0 and less than 0x80000000. See section 2.2.2 for how this element integrates with ISO/IEC-29500-1.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="docId" type="CT_LongHexNumber"/>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

2.5.1 CT_LongHexNumber

Target namespace: https://schemas.microsoft.com/office/word/2009/2/wordml

Referenced by: docId

This represents a 32-bit integer. Value ranges from 0 to 0xFFFFFFFF.

Attributes:

val : An ST_LongHexNumber (as specified by [ISO/IEC-29500-1] §17.18.50) attribute that specifies the value of the property.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_LongHexNumber">

<xsd:attribute name="val" type="w:ST_LongHexNumber" use="required"/>

</xsd:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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

DocumentId Members

DocumentFormat.OpenXml.Office2010.Word Namespace