Comment 构造函数

定义

重载

Comment()

初始化 Comment 类的新实例。

Comment(OpenXmlElement[])

初始化与指定的子元素的 Comment 类的新实例。

Comment(IEnumerable<OpenXmlElement>)

初始化与指定的子元素的 Comment 类的新实例。

Comment(String)

初始化从外部 XML Comment 类的新实例。

Comment()

初始化 Comment 类的新实例。

public Comment ();
Public Sub New ()

适用于

Comment(OpenXmlElement[])

初始化与指定的子元素的 Comment 类的新实例。

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

参数

childElements
OpenXmlElement[]

指定的子元素。

适用于

Comment(IEnumerable<OpenXmlElement>)

初始化与指定的子元素的 Comment 类的新实例。

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

参数

childElements
IEnumerable<OpenXmlElement>

指定的子元素。

适用于

Comment(String)

初始化从外部 XML Comment 类的新实例。

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

参数

outerXml
String

指定外部 XML 元素。

适用于