Comments Class

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

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(Authors))> _
<ChildElementInfoAttribute(GetType(CommentList))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class Comments _
    Inherits OpenXmlPartRootElement
Dim instance As Comments
public class Comments : OpenXmlPartRootElement


The following table lists the possible child types:

  • Authors <x:authors>

  • CommentList <x:commentList>

  • ExtensionList <x:extLst>

[ISO/IEC 29500-1 1st Edition]

18.7.6 comments (Comments)

This element is the root container of a set of comments and comment authors for a particular sheet. Each set of comments for a sheet is stored in a separate xml part. The relationship part for a sheet defines a link to the correct comment part for that sheet.

Parent Elements

Root element of SpreadsheetML Comments part

Child Elements


authors (Authors)


commentList (List of Comments)


extLst (Future Feature Data Storage Area)


[Note: The W3C XML Schema definition of this element’s content model (CT_Comments) is located in §A.2. 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


Comments Members

DocumentFormat.OpenXml.Spreadsheet Namespace