共用方式為


Task Constructors

Definition

Overloads

Task()

Initializes a new instance of the Task class.

Task(OpenXmlElement[])

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

Task(IEnumerable<OpenXmlElement>)

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

Task(String)

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

Task()

Initializes a new instance of the Task class.

public Task ();
Public Sub New ()

Applies to

Task(OpenXmlElement[])

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

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

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

Task(IEnumerable<OpenXmlElement>)

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

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

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

Task(String)

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

public Task (string outerXml);
new DocumentFormat.OpenXml.Office2021.DocumentTasks.Task : string -> DocumentFormat.OpenXml.Office2021.DocumentTasks.Task
Public Sub New (outerXml As String)

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to