Nevron .NET Vision
Nevron.UI.WebForm.Controls Namespace / NAjaxXmlTransportBuilder Class / AddImageMapDataSection Method
The web control, related with the AJAX request.


In This Topic
    AddImageMapDataSection Method
    In This Topic
    Adds the built-in "imageMap" data section to the data sections collection of the object. The behavior of this method depends on the value of the AjaxImageMapMode property of the web control.
    Syntax
    'Declaration
     
    
    Public Function AddImageMapDataSection( _
       ByVal webControl As NWebControl _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NAjaxXmlTransportBuilder
    Dim webControl As NWebControl
    Dim value As System.Boolean
     
    value = instance.AddImageMapDataSection(webControl)
    public System.bool AddImageMapDataSection( 
       NWebControl webControl
    )

    Parameters

    webControl
    The web control, related with the AJAX request.

    Return Value

    If the value of the AjaxImageMapMode property of the web control is set to Never, always returns false.

    If the value of the AjaxImageMapMode property of the web control is set to Auto or Manual, returns true, if there are image map areas generated; else returns false.

    If the value of the AjaxImageMapMode property of the web control is set to Always, always returns true.

    Remarks

    Will throw an ArgumentException if a data section with name "imageMap" already exists in the data sections collection of the object.

    If the value of the AjaxImageMapMode property of the web control is set to Never, this method immediately returns. If the value of the AjaxImageMapMode property of the web control is set to Auto or Manual, and if there is no area generated by the image map writer, the "imageMap" data section will not be added to the builder. If the value of the AjaxImageMapMode property of the web control is set to Always, the "imageMap" data section will always be added to the builder.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also