Creates an HTML code for a MAP tag.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
SyntaxC#
Copy Code
|
|---|
public string CreateImageMap ( |
Visual Basic
Copy Code
|
|---|
Public Function CreateImageMap( _ |
A string that represents the NAME attribute in the <MAP> tag.
A string value containing the generated HTML code.
RemarksThere are <AREA> tags generated for each node or link whose HyperLink is not an empty string. Outlines of items that cannot be represented exactly with standard <AREA> shapes are approximated to polygons. The HREF attribute of the area is set to the value of item's HyperLink property. The ALT attribute is set to the value of item's ToolTip property.
ExampleThe following HTML code:
HTML
Copy Code
|
|---|
<MAP NAME="diagram1"> |
is generated from the following code:
C#
Copy Code
|
|---|
| HtmlBuilder hb = new HtmlBuilder(diagram); string htmlCode = hb.CreateImageMap("diagram"); |
Visual Basic
Copy Code
|
|---|
| Dim hb As HtmlBuilder = New HtmlBuilder(diagram) Dim htmlCode As String = hb.CreateImageMap("diagram") |
See Also