ForEach Constructors 
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ForEach() | Initializes a new instance of the ForEach class. | 
| ForEach(OpenXmlElement[]) | Initializes a new instance of the ForEach class with the specified child elements. | 
| ForEach(IEnumerable<OpenXmlElement>) | Initializes a new instance of the ForEach class with the specified child elements. | 
| ForEach(String) | Initializes a new instance of the ForEach class from outer XML. | 
ForEach()
Initializes a new instance of the ForEach class.
public ForEach();Public Sub New ()Applies to
ForEach(OpenXmlElement[])
Initializes a new instance of the ForEach class with the specified child elements.
public ForEach(params DocumentFormat.OpenXml.OpenXmlElement[] childElements);new DocumentFormat.OpenXml.Drawing.Diagrams.ForEach : DocumentFormat.OpenXml.OpenXmlElement[] -> DocumentFormat.OpenXml.Drawing.Diagrams.ForEachPublic Sub New (ParamArray childElements As OpenXmlElement())Parameters
- childElements
- OpenXmlElement[]
Specifies the child elements.
Applies to
ForEach(IEnumerable<OpenXmlElement>)
Initializes a new instance of the ForEach class with the specified child elements.
public ForEach(System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement> childElements);new DocumentFormat.OpenXml.Drawing.Diagrams.ForEach : seq<DocumentFormat.OpenXml.OpenXmlElement> -> DocumentFormat.OpenXml.Drawing.Diagrams.ForEachPublic Sub New (childElements As IEnumerable(Of OpenXmlElement))Parameters
- childElements
- IEnumerable<OpenXmlElement>
Specifies the child elements.
Applies to
ForEach(String)
Initializes a new instance of the ForEach class from outer XML.
public ForEach(string outerXml);new DocumentFormat.OpenXml.Drawing.Diagrams.ForEach : string -> DocumentFormat.OpenXml.Drawing.Diagrams.ForEachPublic Sub New (outerXml As String)Parameters
- outerXml
- String
Specifies the outer XML of the element.