Share via


Comment Constructors

Definition

Overloads

Comment()

Initializes a new instance of the Comment class.

Comment(OpenXmlElement[])

Initializes a new instance of the Comment class with the specified child elements.

Comment(IEnumerable<OpenXmlElement>)

Initializes a new instance of the Comment class with the specified child elements.

Comment(String)

Initializes a new instance of the Comment class from outer XML.

Comment()

Initializes a new instance of the Comment class.

public Comment ();
Public Sub New ()

Applies to

Comment(OpenXmlElement[])

Initializes a new instance of the Comment class with the specified child elements.

public Comment (params DocumentFormat.OpenXml.OpenXmlElement[] childElements);
new DocumentFormat.OpenXml.Spreadsheet.Comment : DocumentFormat.OpenXml.OpenXmlElement[] -> DocumentFormat.OpenXml.Spreadsheet.Comment
Public Sub New (ParamArray childElements As OpenXmlElement())

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

Comment(IEnumerable<OpenXmlElement>)

Initializes a new instance of the Comment class with the specified child elements.

public Comment (System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement> childElements);
new DocumentFormat.OpenXml.Spreadsheet.Comment : seq<DocumentFormat.OpenXml.OpenXmlElement> -> DocumentFormat.OpenXml.Spreadsheet.Comment
Public Sub New (childElements As IEnumerable(Of OpenXmlElement))

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

Comment(String)

Initializes a new instance of the Comment class from outer XML.

public Comment (string outerXml);
new DocumentFormat.OpenXml.Spreadsheet.Comment : string -> DocumentFormat.OpenXml.Spreadsheet.Comment
Public Sub New (outerXml As String)

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to