DiagramLite Programmer's Guide
HtmlBuilder Class
Remarks See Also
 





Provides methods to create and use HTML client side image maps.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public class HtmlBuilder

Visual Basic  Copy Code

Public Class HtmlBuilder

 Remarks

If an exported diagram image is displayed in an HTML page, it is helpful to create an image map whose areas correspond to the items visible in the image. The CreateImageMap method generates a full <MAP> tag, including its <AREA> elements. CreateUseMapAttr method creates the code to reference a map from within an <IMG> tag, and also adds a WIDTH and HEIGHT attributes that define to the width and height of the exported image, measured in pixels.

Each <AREA> tag in the image map has its attributes set as follows:

Image map areas can be also generated for the [±] buttons displayed beside Expandable nodes. To enable that, assign an URL to the ExpandBtnHyperLink property. That URL can contain some format specifiers which are automatically replaced with the values of nodes' Tag or ZIndex properties. That lets you identify on the server side the node whose [±] button is clicked.

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.HtmlBuilder

 See Also

HtmlBuilder Members
MindFusion.Diagramming Namespace