Click or drag to resize

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.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public interface IPdfRenderableContainer

The IPdfRenderableContainer type exposes the following members.

Methods
  NameDescription
Public methodPostRender
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.
Public methodPreRender
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.
Top
See Also