PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / RenderC1Printable Class
Members

In This Topic
    RenderC1Printable Class
    In This Topic
    Represents an external object that can be seamlessly rendered in a C1PrintDocument. See remarks for details.
    Object Model
    RenderC1Printable Class
    Syntax
    'Declaration
     
    Public Class RenderC1Printable 
       Inherits RenderArea
       Implements IDocumentLocationIStyleOwner 
    public class RenderC1Printable : RenderArea, IDocumentLocationIStyleOwner  
    Remarks
    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: 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.
    • At the end of that method, create a new System.IO.MemoryStream object, call the C1PrintDocument.Save method to save your document to that memory stream, and return it.
    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.
    Inheritance Hierarchy

    System.Object
       C1.C1Preview.RenderObject
          C1.C1Preview.RenderArea
             C1.C1Preview.RenderC1Printable

    See Also