| GroupElementCopyWithoutContent Method |
Copy a group element without copying its content
Create a new group element, taking a given group element as a template.
The newly created group has the same properties, such as geometric transform, clipping, and soft mask, but it's content is empty.
The returned object is associated with the given target document but not yet part of it.
Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.ContentAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.6+c8104d9b5f50644b2c93d424e62edbf40828fde7
Syntax public static GroupElement CopyWithoutContent(
Document targetDocument,
GroupElement groupElement
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- groupElement GroupElement
-
a group element of a different document
Return Value
GroupElement
the new group element, associated with the current document
Exceptions Exception | Condition |
---|
IOException | Error reading from the source document or writing to the target document |
ConformanceException | The conformance level of the source document is not compatible
with the conformance level of the target document. |
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentException | the groupElement object is not associated with an input document |
ArgumentException | the document associated with the groupElement object has already been closed |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if groupElement is . |
See Also