Search
HtmlBuilder.CreateUseMapAttr Method
See Also
 





Generates a USEMAP attribute to be used within an <IMG> tag.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public string CreateUseMapAttr (
    string mapID
)

Visual Basic  Copy Code

Public Function CreateUseMapAttr( _
    mapID As String _
) As String

 Parameters

mapID
A string that represents the ID in the USEMAP attribute of the <IMG> HTML tag.

 Return Value

A string that contains the generated HTML code for the USEMAP attribute.

 Remarks

Use the same mapID as the one you have passed to CreateImageMap. The method generates also WIDTH and HEIGHT attributes, converting the diagram's MeasureUnit values to pixel values.

 Example

The result of this method looks like:

HTML  Copy Code

USEMAP="#diagram1" WIDTH="672" HEIGHT="808"

and is ready to be inserted in your <IMG> tag.

 See Also