PdfSharp-GDI  1.31.7289
PdfSharp.Pdf.Content.Objects.CSequence Class Reference

Represents a sequence of objects in a PDF content stream. More...

Inheritance diagram for PdfSharp.Pdf.Content.Objects.CSequence:
PdfSharp.Pdf.Content.Objects.CObject PdfSharp.Pdf.Content.Objects.CArray

Public Member Functions

new CSequence Clone ()
 Creates a new object that is a copy of the current instance. More...
 
void Add (CSequence sequence)
 Adds the specified sequence. More...
 
void Add (CObject value)
 Adds the specified value add the end of the sequence. More...
 
void Clear ()
 Removes all elements from the sequence. More...
 
bool Contains (CObject value)
 Determines whether the specified value is in the sequence. More...
 
int IndexOf (CObject value)
 Returns the index of the specified value in the sequence or -1, if no such value is in the sequence. More...
 
void Insert (int index, CObject value)
 Inserts the specified value in the sequence. More...
 
bool Remove (CObject value)
 Removes the specified value from the sequence. More...
 
void RemoveAt (int index)
 Removes the value at the specified index from the sequence. More...
 
void CopyTo (CObject[] array, int index)
 Copies the elements of the sequence to the specified array. More...
 
IEnumerator< CObjectGetEnumerator ()
 Returns an enumerator that iterates through the sequence. More...
 
byte[] ToContent ()
 Converts the sequence to a PDF content stream. More...
 
override string ToString ()
 Returns a string containing all elements of the sequence. More...
 
- Public Member Functions inherited from PdfSharp.Pdf.Content.Objects.CObject
CObject Clone ()
 Creates a new object that is a copy of the current instance. More...
 

Protected Member Functions

override CObject Copy ()
 Implements the copy mechanism of this class. More...
 
- Protected Member Functions inherited from PdfSharp.Pdf.Content.Objects.CObject
 CObject ()
 Initializes a new instance of the CObject class. More...
 

Properties

CObject this[int index] [get, set]
 Gets or sets a CObject at the specified index. More...
 
int Count [get]
 Gets the number of elements contained in the sequence. More...
 

Detailed Description

Represents a sequence of objects in a PDF content stream.

Member Function Documentation

◆ Add() [1/2]

void PdfSharp.Pdf.Content.Objects.CSequence.Add ( CObject  value)

Adds the specified value add the end of the sequence.

◆ Add() [2/2]

void PdfSharp.Pdf.Content.Objects.CSequence.Add ( CSequence  sequence)

Adds the specified sequence.

Parameters
sequenceThe sequence.

◆ Clear()

void PdfSharp.Pdf.Content.Objects.CSequence.Clear ( )

Removes all elements from the sequence.

◆ Clone()

new CSequence PdfSharp.Pdf.Content.Objects.CSequence.Clone ( )

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

◆ Contains()

bool PdfSharp.Pdf.Content.Objects.CSequence.Contains ( CObject  value)

Determines whether the specified value is in the sequence.

◆ Copy()

override CObject PdfSharp.Pdf.Content.Objects.CSequence.Copy ( )
protectedvirtual

Implements the copy mechanism of this class.

Reimplemented from PdfSharp.Pdf.Content.Objects.CObject.

Reimplemented in PdfSharp.Pdf.Content.Objects.CArray.

◆ CopyTo()

void PdfSharp.Pdf.Content.Objects.CSequence.CopyTo ( CObject[]  array,
int  index 
)

Copies the elements of the sequence to the specified array.

◆ GetEnumerator()

IEnumerator<CObject> PdfSharp.Pdf.Content.Objects.CSequence.GetEnumerator ( )

Returns an enumerator that iterates through the sequence.

◆ IndexOf()

int PdfSharp.Pdf.Content.Objects.CSequence.IndexOf ( CObject  value)

Returns the index of the specified value in the sequence or -1, if no such value is in the sequence.

◆ Insert()

void PdfSharp.Pdf.Content.Objects.CSequence.Insert ( int  index,
CObject  value 
)

Inserts the specified value in the sequence.

◆ Remove()

bool PdfSharp.Pdf.Content.Objects.CSequence.Remove ( CObject  value)

Removes the specified value from the sequence.

◆ RemoveAt()

void PdfSharp.Pdf.Content.Objects.CSequence.RemoveAt ( int  index)

Removes the value at the specified index from the sequence.

◆ ToContent()

byte [] PdfSharp.Pdf.Content.Objects.CSequence.ToContent ( )

Converts the sequence to a PDF content stream.

◆ ToString()

override string PdfSharp.Pdf.Content.Objects.CSequence.ToString ( )

Returns a string containing all elements of the sequence.

Property Documentation

◆ Count

int PdfSharp.Pdf.Content.Objects.CSequence.Count
get

Gets the number of elements contained in the sequence.

◆ this[int index]

CObject PdfSharp.Pdf.Content.Objects.CSequence.this[int index]
getset

Gets or sets a CObject at the specified index.


The documentation for this class was generated from the following file: