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)

public class Comments : OpenXmlPartRootElement

The following table lists the possible child types:

  • Comment <w:comment>

[ISO/IEC 29500-1 1st Edition] 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:comment … >

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


comment (Comment Content)


[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.