IPdfRenderableContainer Interface |
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
IPdfRenderable.
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.
Namespace:
Atalasoft.PdfDoc.Generating.Rendering
Assembly:
Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public interface IPdfRenderableContainer
Public Interface IPdfRenderableContainer
The IPdfRenderableContainer type exposes the following members.
Methods
| Name | Description |
---|
| PostRender |
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.
|
| PreRender |
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) is called.
|
TopSee Also