Udostępnij za pośrednictwem


OpenXmlElementList.First<T> Method

Definition

Gets the first item of type T in the children.

public T First<T> () where T : DocumentFormat.OpenXml.OpenXmlElement;
public T? First<T> () where T : DocumentFormat.OpenXml.OpenXmlElement;
member this.First : unit -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Function First(Of T As OpenXmlElement) () As T

Type Parameters

T

Type to search for.

Returns

T

First instance if found.

Applies to