| ContentGeneratorPaintGroup Method |
Namespace: PdfTools.Toolbox.Pdf.ContentAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
Syntax public void PaintGroup(
Group group,
Rectangle? targetRect,
Transparency transparency
)
Parameters
- group Group
-
the group to be painted
- targetRect NullableRectangle
-
the target rectangle in the current coordinate system.
If targetRect is ,
a default rectangle [0, 0, width, height] is used, where width and height are the dimensions of the given group's Size
- transparency Transparency
-
the transparency to be used when painting the group.
If Transparency is , then the group is painted opaquely.
Exceptions Exception | Condition |
---|
InvalidOperationException | if the document associated with the content has already been closed |
InvalidOperationException | if the page/group associated with the content has already been closed |
InvalidOperationException | if the content object has already been closed |
InvalidOperationException | if the object has already been closed |
ArgumentException | if the document associated with the group object has already been closed |
ArgumentException | if the group is associated with a different document |
ArgumentException | if the group contains no content or the content generator has not been closed yet |
ArgumentException | if the group contains interactive elements (see CopyFromPage(Document, Page, PageCopyOptions))
and it has been painted before. |
ArgumentException | if the group contains interactive elements (see CopyFromPage(Document, Page, PageCopyOptions))
and the content of the content generator belongs to an annotation. |
ConformanceException | if the transparency argument is not and has properties Alpha other than 1.0 or BlendMode other than Normal,
and the explicitly specified conformance does not support transparency (PDF/A-1, PDF 1.0 - 1.3). |
ArgumentNullException | if group is . |
See Also