OpenXmlElement.Annotation 方法

定义

重载

Annotation(Type)

从当前 OpenXmlElement 元素获取指定类型的第一个批注对象。

Annotation<T>()

从当前 OpenXmlElement 元素获取指定类型的第一个批注对象。

Annotation(Type)

从当前 OpenXmlElement 元素获取指定类型的第一个批注对象。

public object Annotation (Type type);
public object? Annotation (Type type);
member this.Annotation : Type -> obj
Public Function Annotation (type As Type) As Object

参数

type
Type

要检索的批注的类型。

返回

具有指定类型的第一个批注对象。

适用于

Annotation<T>()

从当前 OpenXmlElement 元素获取指定类型的第一个批注对象。

public T Annotation<T> () where T : class;
public T? Annotation<T> () where T : class;
member this.Annotation : unit -> 'T (requires 'T : null)
Public Function Annotation(Of T As Class) () As T

类型参数

T

要检索的批注的类型。

返回

T

指定类型的第一个注释对象。

适用于