Share via


OpenXmlPartContainer.Annotations 方法

定义

重载

Annotations(Type)

获取此 PartContainer 的指定类型的注释集合。

Annotations<T>()

获取此 PartContainer 的指定类型的注释集合。

Annotations(Type)

获取此 PartContainer 的指定类型的注释集合。

public System.Collections.Generic.IEnumerable<object> Annotations (Type type);
member this.Annotations : Type -> seq<obj>
Public Iterator Function Annotations (type As Type) As IEnumerable(Of Object)
Public Function Annotations (type As Type) As IEnumerable(Of Object)

参数

type
Type

要检索的批注的类型。

返回

包含此 PartContainer 注释的 对象的 IEnumerable (T) 。

适用于

Annotations<T>()

获取此 PartContainer 的指定类型的注释集合。

public System.Collections.Generic.IEnumerable<T> Annotations<T> () where T : class;
member this.Annotations : unit -> seq<'T (requires 'T : null)> (requires 'T : null)
Public Iterator Function Annotations(Of T As Class) () As IEnumerable(Of T)
Public Function Annotations(Of T As Class) () As IEnumerable(Of T)

类型参数

T

要检索的批注的类型。

返回

包含此 PartContainer 注释的 对象的 IEnumerable (T) 。

适用于