Share via


OpenXmlElementList.GetItem Method

Retrieves a OpenXmlElement at the given index.

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

Syntax

'Declaration
Public MustOverride Function GetItem ( _
    index As Integer _
) As OpenXmlElement
'Usage
Dim instance As OpenXmlElementList
Dim index As Integer
Dim returnValue As OpenXmlElement

returnValue = instance.GetItem(index)
public abstract OpenXmlElement GetItem(
    int index
)

Parameters

  • index
    Type: System.Int32
    Zero-based index into the list of elements.

Return Value

Type: DocumentFormat.OpenXml.OpenXmlElement
The OpenXmlElement in the collection. If index is greater than or equal to the number of elements in the list, this returns a null reference (Nothing in Visual Basic).

See Also

Reference

OpenXmlElementList Class

OpenXmlElementList Members

DocumentFormat.OpenXml Namespace