Defines the CommentRangeStart Class. When the object is serialized out as xml, its qualified name is w:commentRangeStart.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
commentRangeStart (Comment Anchor Range Start)
This element specifies the start of the range around which a comment is anchored in the content of the WordprocessingML document. The id attribute on this element shall be used to link the corresponding comment anchor range end element and comment reference.
The following restrictions shall be applied to this element:
If this element occurs without a corresponding commentRangeEnd element (§184.108.40.206) with a matching id attribute value, then it shall be considered the single anchor point for the associated comment reference.
If this element appears without a corresponding commentReference element (§220.127.116.11) in the current document story with a matching id attribute value, then the document is non-conformant .
If this element appears in a comment content story (§18.104.22.168), then the document is non-conformant .
[Example: Consider a paragraph in a WordprocessingML document whose second word is annotated with a comment:
The WordprocessingML fragment for this comment is defined as follows:
<w:p> <w:r> <w:t xml:space="preserve">Some </w:t> </w:r> <w:commentRangeStart w:id="0" /> <w:r> <w:t>text.</w:t> </w:r> <w:commentRangeEnd w:id="0" /> <w:r> <w:commentReference w:id="0" /> </w:r> </w:p>
The commentRangeStart element specifies that the start of the comment range for the comment with an id of 0 is after the end of the run containing the word Some. end example]
bdo (§22.214.171.124); body (§17.2.2); comment (§126.96.36.199); customXml (§188.8.131.52); customXml (§184.108.40.206); customXml (§220.127.116.11); customXml (§18.104.22.168); deg (§22.214.171.124); del (§126.96.36.199); den (§188.8.131.52); dir (§184.108.40.206); docPartBody (§17.12.6); e (§220.127.116.11); endnote (§17.11.2); fldSimple (§17.16.19); fName (§18.104.22.168); footnote (§17.11.10); ftr (§17.10.3); hdr (§17.10.4); hyperlink (§17.16.22); ins (§22.214.171.124); lim (§126.96.36.199); moveFrom (§188.8.131.52); moveTo (§184.108.40.206); num (§220.127.116.11); oMath (§18.104.22.168); p (§22.214.171.124); rt (§126.96.36.199); rubyBase (§188.8.131.52); sdtContent (§184.108.40.206); sdtContent (§220.127.116.11); sdtContent (§18.104.22.168); sdtContent (§22.214.171.124); smartTag (§126.96.36.199); sub (§188.8.131.52); sup (§184.108.40.206); tbl (§17.4.38); tc (§17.4.66); tr (§17.4.79)
displacedByCustomXml (Annotation Marker Relocated For Custom XML Markup)
Specifies that the parent annotation's placement shall be directly linked with the location of the physical presentation of a custom XML element in the document. This element only has an effect when the custom XML element is block-level (i.e. surrounds an entire paragraph), as in this scenario the logical and physical placement of the annotation and custom XML element can differ.
Specifically, in this case, the custom XML is presented *around* the block-level object it encloses (the paragraph, table, table row, or table cell), but is physically represented within that same object (i.e. within the paragraph, table, table row or table cell). This requirement stems from the fact that there is no location for the location of the annotation within the document at its logical location (around a table, for example).
If this element is omitted, then the annotation shall be anchored inside of all block-level custom XML elements in the paragraph. If this element is present, but no block-level custom XML tag is located at the position it specifies (before or after), then it shall be ignored.
[Example: Consider a paragraph with block level custom XML markup and two comment anchor annotations (one before and one after the custom XML element's physical representation), as follows:
Since all three of these items are around the entire paragraph, they are stored outside of the paragraph. However, in order to ensure that their relative positions are stored correctly, any annotation which must be displaced by the physical custom XML element specifies this information, resulting in the following WordprocessingML:
…<w:commentRangeStart w:id="0" /> <w:commentRangeStart w:id="1" w:displaced byCustomXml="next" /> <w:customXml w:element="spec" … /> <w:p> …</w:p> …
The displacedByCustomXml attribute specifies that even though all three of these items are around the paragraph and is moved inside the paragraph to be represented physically, the comment with ID 0 must be inside the custom XML, but the comment with ID 1 must be displaced to stay outside of the relative location of the next custom XML element (the spec element). end example]
The possible values for this attribute are defined by the ST_DisplacedByCustomXml simple type (§17.18.13).
id (Annotation Identifier)
Specifies a unique identifier for an annotation within a WordprocessingML document. The restrictions on the id attribute, if any, are defined by the parent XML element.
If this attribute is omitted, then the document is non-conformant.
[Example: Consider an annotation represented using the following WordprocessingML fragment:
<… w:id="1" … > … </…>
The id attribute specifies that the ID of the current annotation is 1. This value is used to uniquely identify this annotation within the document content. end example]
The possible values for this attribute are defined by the ST_DecimalNumber simple type (§17.18.10).
[Note: The W3C XML Schema definition of this element’s content model (CT_MarkupRange) is located in §A.1. end note]
© ISO/IEC29500: 2008.