Class XpsArray
Class XpsArray
Namespace: Aspose.Page.XPS.XpsModel
Assembly: Aspose.Page.dll (25.1.2)
类封装了常见的 XPS 模型数组对象特性。
public abstract class XpsArray<t> : XpsObject where T : XpsObject
类型参数
T
数组元素的类型。
继承
object ← XpsObject ← XpsArray<t>
继承的成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
属性
Count
返回元素的数量。
public int Count { get; }
属性值
this[int]
通过索引 i
提供对数组元素的访问。
public T this[int i] { get; }
属性值
T
方法
Add(T)
将新对象添加到数组中。
public T Add(T obj)
参数
obj
T
要添加的对象。
返回
T
添加的对象。
Insert(int, T)
在指定位置向数组中插入新对象。
public T Insert(int index, T obj)
参数
index
int
插入对象的位置。
obj
T
要插入的对象。
返回
T
插入的对象。
Remove(T)
从数组中移除对象。
public T Remove(T obj)
参数
obj
T
要移除的对象。
返回
T
移除的对象。
RemoveAt(int)
在指定位置从数组中移除对象。
public T RemoveAt(int index)
参数
index
int
移除对象的位置。
返回
T
移除的对象。