This documentation is archived and is not being maintained.

Comments Class

Comments Collection. It is the root element of WordprocessingCommentsPart.When the object is serialized out as xml, its qualified name is w:comments.

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

[ChildElementInfoAttribute(typeof(Comment))]
public class Comments : OpenXmlPartRootElement

The following table lists the possible child types:

  • Comment <w:comment>


[ISO/IEC 29500-1 1st Edition]

17.13.1.6 comments (Comments Collection)

This element specifies all of the comments defined in the current document. It is the root element of the Comments part of a WordprocessingML document.

[Example: Consider the following WordprocessingML fragment for the content of a comments part in a WordprocessingML document:

<w:comments>
<w:comment … >
…
</w:comment>
</w:comments>

The comments element contains the single comment specified by this document in this example. end example]

Parent Elements

Root element of WordprocessingML Comments part

Child Elements

Subclause

comment (Comment Content)

§17.13.4.2

[Note: The W3C XML Schema definition of this element’s content model (CT_Comments) is located in §A.1. end note]

© ISO/IEC29500: 2008.

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