Share via


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.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Wordprocessing.Comments

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Comment))> _
Public Class Comments _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As Comments
[ChildElementInfoAttribute(typeof(Comment))]
public class Comments : OpenXmlPartRootElement

Remarks

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.

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

Comments Members

DocumentFormat.OpenXml.Wordprocessing Namespace