Freigeben über


OpenXmlElementList.GetItem-Methode

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
)

Parameter

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

Rückgabewert

Typ: 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).

Siehe auch

Referenz

OpenXmlElementList Klasse

OpenXmlElementList-Member

DocumentFormat.OpenXml-Namespace