• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ContentElementCollection

The ordered collection of content elements on a page. New elements are appended at the end (painted on top). Reading back elements from an existing content stream is supported via All() and All(PdfMatrix).

Inheritance
object
ContentElementCollection
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class ContentElementCollection

Methods

AddClone(PathContent)

Deep-copy source and append the clone to this page. Useful for stamping the same path shape at multiple positions.

Declaration
public PathContent AddClone(PathContent source)
Parameters
Type Name Description
PathContent source
Returns
Type Description
PathContent

AddMarkEnd()

End the current marked-content section.

Declaration
public void AddMarkEnd()

AddMarkStart(ContentMarkTag)

Begin a marked-content section. Use AddMarkEnd() to close it.

Declaration
public ContentMarkStart AddMarkStart(ContentMarkTag tag)
Parameters
Type Name Description
ContentMarkTag tag
Returns
Type Description
ContentMarkStart

AddPath()

Add a new path element to the page. Set Format properties before the next call to Save(Stream).

Declaration
public PathContent AddPath()
Returns
Type Description
PathContent

All()

Enumerate all content elements on this page using an identity transform. Elements are returned in paint order (bottom to top).

Declaration
public ContentElementEnumerable All()
Returns
Type Description
ContentElementEnumerable

All(PdfMatrix)

Enumerate all content elements on this page, carrying the supplied pageTransform in the returned enumerator's Transform property. Use Transform(ref PdfRect) on that transform to convert element bounds from page space to device space.

Declaration
public ContentElementEnumerable All(PdfMatrix pageTransform)
Parameters
Type Name Description
PdfMatrix pageTransform
Returns
Type Description
ContentElementEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX