Class XpsArray

Class XpsArray

Namespace: Aspose.Page.XPS.XpsModel
Assembly: Aspose.Page.dll (25.1.2)

Class incapsulating common XPS model array object features.

public abstract class XpsArray<t> : XpsObject where T : XpsObject

Type Parameters

T

The type of array elements.

Inheritance

objectXpsObjectXpsArray<t>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Count

Returns number of elements.

public int Count { get; }

Property Value

int

this[int]

Provides access to array’s element by index i.

public T this[int i] { get; }

Property Value

T

Methods

Add(T)

Adds a new object into array.

public T Add(T obj)

Parameters

obj T

The object to add.

Returns

T

Added object.

Insert(int, T)

Inserts a new object into array at specified position.

public T Insert(int index, T obj)

Parameters

index int

The position to insert an object at.

obj T

The object to insert.

Returns

T

Inserted object.

Remove(T)

Removes an object from array.

public T Remove(T obj)

Parameters

obj T

The object to remove.

Returns

T

Removed object.

RemoveAt(int)

Removes an object from array at specified position.

public T RemoveAt(int index)

Parameters

index int

The position to remove an object at.

Returns

T

Removed object. </t>

 English