共用方式為


OpenXmlElementList.GetItem(Int32) Method

Definition

Gets the OpenXmlElement element at the specified index.

public abstract DocumentFormat.OpenXml.OpenXmlElement GetItem (int index);
abstract member GetItem : int -> DocumentFormat.OpenXml.OpenXmlElement
Public MustOverride Function GetItem (index As Integer) As OpenXmlElement

Parameters

index
Int32

A zero-based integer that represents an index in the list of elements.

Returns

An OpenXmlElement element at the specified index in the collection. Returns null (Nothing in Visual Basic) if the index is greater than or equal to the number of elements in the list.

Applies to