OpenXmlElement.Annotations 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Annotations(Type) |
获取具有当前 OpenXmlElement 元素的指定类型的批注的集合。 |
Annotations<T>() |
获取具有当前 OpenXmlElement 元素的指定类型的批注的集合。 |
Annotations(Type)
获取具有当前 OpenXmlElement 元素的指定类型的批注的集合。
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
要检索的批注的类型。
返回
一个 IEnumerable (T) 对象,该对象包含当前 OpenXmlElement 元素的批注。
适用于
Annotations<T>()
获取具有当前 OpenXmlElement 元素的指定类型的批注的集合。
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
要检索的批注的类型。
返回
IEnumerable<T>
包含当前 OpenXmlElement 元素注释的 IEnumerable (T) 对象。