This interface is used for certain classes of rendering objects that may need to do meta-rendering.
In such cases, an object should implement IPdfRenderableContainer
. When it is rendered,
it first have PreRender called, then Render, then PostRender.
An object may not implement IPdfRenderableContainer
alone. It must also implement
For example, PdfMarkedContent
is a container of
other renderer content and does no rendering of its own. Instead, on PreRender it informs the
renderer that marked content will follow. The renderer will automatically pick up its DrawingList
(since PdfMarkedContent also implements IEumerable<IPdfRenderable>
) and render its
contents, then on PostRender, it will inform the renderer that marked content is complete.
Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 188.8.131.52.0.297 (.NET 4.5.2, x86)
public interface IPdfRenderableContainer
Public Interface IPdfRenderableContainer
The IPdfRenderableContainer type exposes the following members.
This method is called after rendering is complete. This is an opportunity for the object to clean up
previous work or restore prior state. The value returned by PreRender(PdfPageRenderer)
is passed in
the parameter memento
This method is called before rendering happens. This is an opportunity for the object to create or save
information for later use or restoration. The value returned is a memento that will be passed back to
the object when PostRender(PdfPageRenderer, Object)