Class CSequence
Represents a sequence of objects in a PDF content stream.
public class CSequence : CObject, ICloneable, IList<CObject>, ICollection<CObject>, IEnumerable<CObject>, IEnumerable
- Inheritance
-
CSequence
- Implements
- Derived
- Inherited Members
Constructors
CSequence()
public CSequence()
Properties
Count
Gets the number of elements contained in the sequence.
public int Count { get; }
Property Value
this[int]
Gets or sets a CObject at the specified index.
public CObject this[int index] { get; set; }
Parameters
index
int
Property Value
Methods
Add(CObject)
Adds the specified value add the end of the sequence.
public void Add(CObject value)
Parameters
value
CObject
Add(CSequence)
Adds the specified sequence.
public void Add(CSequence sequence)
Parameters
sequence
CSequenceThe sequence.
Clear()
Removes all elements from the sequence.
public void Clear()
Clone()
Creates a new object that is a copy of the current instance.
public CSequence Clone()
Returns
Contains(CObject)
Determines whether the specified value is in the sequence.
public bool Contains(CObject value)
Parameters
value
CObject
Returns
Copy()
Implements the copy mechanism of this class.
protected override CObject Copy()
Returns
CopyTo(CObject[], int)
Copies the elements of the sequence to the specified array.
public void CopyTo(CObject[] array, int index)
Parameters
GetEnumerator()
Returns an enumerator that iterates through the sequence.
public IEnumerator<CObject> GetEnumerator()
Returns
IndexOf(CObject)
Returns the index of the specified value in the sequence or -1, if no such value is in the sequence.
public int IndexOf(CObject value)
Parameters
value
CObject
Returns
Insert(int, CObject)
Inserts the specified value in the sequence.
public void Insert(int index, CObject value)
Parameters
Remove(CObject)
Removes the specified value from the sequence.
public bool Remove(CObject value)
Parameters
value
CObject
Returns
RemoveAt(int)
Removes the value at the specified index from the sequence.
public void RemoveAt(int index)
Parameters
index
int
ToContent()
Converts the sequence to a PDF content stream.
public byte[] ToContent()
Returns
- byte[]
ToString()
Returns a string containing all elements of the sequence.
public override string ToString()