Table of Contents

Class CSequence

Namespace
PdfSharp.Pdf.Content.Objects
Assembly
PdfSharp-gdi.dll

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

int

this[int]

Gets or sets a CObject at the specified index.

public CObject this[int index] { get; set; }

Parameters

index int

Property Value

CObject

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 CSequence

The 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

CSequence

Contains(CObject)

Determines whether the specified value is in the sequence.

public bool Contains(CObject value)

Parameters

value CObject

Returns

bool

Copy()

Implements the copy mechanism of this class.

protected override CObject Copy()

Returns

CObject

CopyTo(CObject[], int)

Copies the elements of the sequence to the specified array.

public void CopyTo(CObject[] array, int index)

Parameters

array CObject[]
index int

GetEnumerator()

Returns an enumerator that iterates through the sequence.

public IEnumerator<CObject> GetEnumerator()

Returns

IEnumerator<CObject>

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

int

Insert(int, CObject)

Inserts the specified value in the sequence.

public void Insert(int index, CObject value)

Parameters

index int
value CObject

Remove(CObject)

Removes the specified value from the sequence.

public bool Remove(CObject value)

Parameters

value CObject

Returns

bool

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()

Returns

string