The object that this class renders is specified by the value of the Object property. For an object to be assignable to that property, it must expose either of the following two instance methods:
If this method is implemented, it should return an System.Drawing.Image representing the object to be rendered.
If this method is implemented, it should return a System.IO.Stream containing a serialized C1PrintDocument representing the object to be rendered. For instance, such stream can be created using the C1PrintDocument.Save method.
To implement a C1PrintableGetTree() method on a class, follow these steps:
Add a method public Stream C1PrintableGetTree() to your class;
In that method's body, create a C1PrintDocument, and render a representation of your class into the Body of that document, using the available render objects such as RenderText, RenderTable and so on.
You will then be able to assign an instance of your class to the Object property of a RenderC1Printable object, and insert that object anywhere in a C1PrintDocument where a standard render object may occur.