CyDAS General Controls: Class ImageMapAreaSelectedEventArgs

The class ImageMapAreaSelectedEventArgs describes the arguments passed to the event handler in the ImageMapAreaSelected event raised by the ImageMapControl.

Overview


ImageMapAreaSelectedEventArgs
New(ByRef area: ImageMapArea) 
SelectedArea: ImageMapArea {readonly}

Programming Language

  • Microsoft Visual Basic .Net.

Availability

Constructors

Public Sub New(ByRef area As ImageMapArea)

Instantiates a new ImageMapAreaSelectedEventArgs object.

Parameters

  • area: a reference to the ImageMapArea object representing the selected area of the image map.

Remarks

  • the area parameter is passed by reference. I.e. changing its properties will change the properties of its counterpart in the image map.

Interfaces

Inherits

System.EventArgs.

Enumerations

The class does not provides enumerations.

Properties

ReadOnly Property SelectedArea() As ImageMapArea

Gets an ImageMapArea object describing the selected area.

Property Value

Examples

  • To display information on an area when it was clicked in an ImageMapControl, you can do:
    Private Sub ImageMapControl1_AreaSelected(ByRef sender As Object, ByRef e As _
       CyDASGeneralControls.ImageMapAreaSelectedEventArgs) Handles ImageMapControl1.AreaSelected
            MsgBox("Area clicked: " & e.SelectedArea.Title)

  • End Sub

Methods

The class does not provide methods.

Interaction with other classes

Classes using ImageMapAreaSelectedEventArgs

The ImageMapAreaSelectedEventArgs class is linked from the ImageMapControl class. If the ImageMapControl is clicked, the control searches for an ImageMapArea at the clicked position. If such an area was found and the AutoNavigate property is set to false, it will raise an AreaSelected and pass a reference to the selected ImageMapArea object.