Search
DiagramItem.Draw Method
See Also
 





Draws the item on the specified IGraphics surface.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public abstract void Draw (
    IGraphics graphics,
    RenderOptions options
)

Visual Basic  Copy Code

Public MustOverride Sub Draw( _
    graphics As IGraphics, _
    options As RenderOptions _
)

 Parameters

graphics
The IGraphics surface to draw the item on.
options
A RenderOptions object specifying options for the drawing operation.

 Remarks

MindFusion.Diagramming calls this method to draw a representation of the diagram item onto the specified graphics surface. Implement this method in custom node or link types if you need to provide your own drawing functionality. The method is called when rendering the diagram on screen, or exporting it to PDF or SVG files. The IGraphics methods call the respective GDI+ Graphics methods when drawing on screen, or generate PDF of SVG tags when using PdfExporter and SvgExporter to export diagram files.

 See Also