PDFsharp-net6

CSequence

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 ObjectCObjectCSequence
Implements ICloneable, IList<CObject>, ICollection<CObject>, IEnumerable<CObject>, IEnumerable

Properties

Item

public CObject Item { get; set; }

Property Value

CObject

Count

Gets the number of elements contained in the sequence.

public int Count { get; }

Property Value

Int32

Constructors

CSequence()

public CSequence()

Methods

Clone()

Creates a new object that is a copy of the current instance.

public CSequence Clone()

Returns

CSequence

Copy()

Implements the copy mechanism of this class.

protected CObject Copy()

Returns

CObject

Add(CSequence)

Adds the specified sequence.

public void Add(CSequence sequence)

Parameters

sequence CSequence
The sequence.

Add(CObject)

Adds the specified value add the end of the sequence.

public void Add(CObject value)

Parameters

value CObject

Clear()

Removes all elements from the sequence.

public void Clear()

Contains(CObject)

Determines whether the specified value is in the sequence.

public bool Contains(CObject value)

Parameters

value CObject

Returns

Boolean

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

Int32

Insert(Int32, CObject)

Inserts the specified value in the sequence.

public void Insert(int index, CObject value)

Parameters

index Int32

value CObject

Remove(CObject)

Removes the specified value from the sequence.

public bool Remove(CObject value)

Parameters

value CObject

Returns

Boolean

RemoveAt(Int32)

Removes the value at the specified index from the sequence.

public void RemoveAt(int index)

Parameters

index Int32

CopyTo(CObject[], Int32)

Copies the elements of the sequence to the specified array.

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

Parameters

array CObject[]

index Int32

GetEnumerator()

Returns an enumerator that iterates through the sequence.

public IEnumerator<CObject> GetEnumerator()

Returns

IEnumerator<CObject>

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

Returns

String

WriteObject(ContentWriter)

internal void WriteObject(ContentWriter writer)

Parameters

writer ContentWriter