Nevron .NET Vision Documentation
Custom HTML Map Area Attribute

Every object that has an interactivity style can have an associated custom HTML map area attribute. This attribute specifies custom script to be injected in the object AREA when the control is used in Web applications. The HTML map area attribute is represented by the NCustomMapAreaAttribute class. You assign a map area attribute to the object by creating an instance of this class and adding it to the InteractivityAttributes collection. For example:

C#
Copy Code
NCustomMapAreaAttribute customMapAreaAttribute = new NCustomMapAreaAttribute();
customMapAreaAttribute.JScriptAttribute = "OnClick = \"javascript:alert('You clicked on this object')\"";
someObject.InteractivityStyle.InteractivityAttributes.Add(customMapAreaAttribute);
Visual Basic
Copy Code
Dim customMapAreaAttribute As New NCustomMapAreaAttribute
customMapAreaAttribute.JScriptAttribute = "OnClick = 'javascript:alert('You clicked on this object')'"
someObject.InteractivityStyle.InteractivityAttributes.Add(customMapAreaAttribute)
See Also

 

 


©2017. Nevron Software LLC.

Send Feedback