Namespace: PdfSharp.Pdf.Content.Objects
Represents a sequence of objects in a PDF content stream.
public class CSequence : CObject, System.ICloneable, System.Collections.Generic.IList`1[[PdfSharp.Pdf.Content.Objects.CObject, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.ICollection`1[[PdfSharp.Pdf.Content.Objects.CObject, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IEnumerable`1[[PdfSharp.Pdf.Content.Objects.CObject, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable
Inheritance Object → CObject → CSequence
Implements ICloneable, IList<CObject>, ICollection<CObject>, IEnumerable<CObject>, IEnumerable
public CObject Item { get; set; }
Gets the number of elements contained in the sequence.
public int Count { get; }
public CSequence()
Creates a new object that is a copy of the current instance.
public CSequence Clone()
Implements the copy mechanism of this class.
protected CObject Copy()
Adds the specified sequence.
public void Add(CSequence sequence)
sequence
CSequence
The sequence.
Adds the specified value add the end of the sequence.
public void Add(CObject value)
value
CObject
Removes all elements from the sequence.
public void Clear()
Determines whether the specified value is in the sequence.
public bool Contains(CObject value)
value
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)
value
CObject
Inserts the specified value in the sequence.
public void Insert(int index, CObject value)
index
Int32
value
CObject
Removes the specified value from the sequence.
public bool Remove(CObject value)
value
CObject
Removes the value at the specified index from the sequence.
public void RemoveAt(int index)
index
Int32
Copies the elements of the sequence to the specified array.
public void CopyTo(CObject[] array, int index)
array
CObject[]
index
Int32
Returns an enumerator that iterates through the sequence.
public IEnumerator<CObject> GetEnumerator()
Converts the sequence to a PDF content stream.
public Byte[] ToContent()
Returns a string containing all elements of the sequence.
public string ToString()
internal void WriteObject(ContentWriter writer)
writer
ContentWriter