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
ContentElementCollection
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
Returns
AddMarkEnd()
End the current marked-content section.
Declaration
AddMarkStart(ContentMarkTag)
Begin a marked-content section.
Use AddMarkEnd() to close it.
Declaration
public ContentMarkStart AddMarkStart(ContentMarkTag tag)
Parameters
Returns
AddPath()
Add a new path element to the page.
Set Format properties before the next call to
Save(Stream).
Declaration
public PathContent AddPath()
Returns
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
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