[Visual
Basic] imagekitcontrolname_MouseDownSelectLayerImage(ByVal
Index As Integer, ByVal x As Long, ByVal y As Long)
[Visual
C++] OnMouseDownSelectLayerImageimagekitcontrolname(short
Index, long x, long y)
[VB.NET] imagekitcontrolname_MouseDownSelectLayerImage(ByVal
sender As System.Object, ByVal e As
AxImageKit10(A)Lib._IImageKitEvents_MouseDownSelectLayerImageEvent)
[C#.NET] imagekitcontrolname_MouseDownSelectLayerImage(object
sender,
AxImageKit10(A)Lib._IImageKitEvents_MouseDownSelectLayerImageEvent
e)
AxImageKit10ALib refers to the ANSI version, AXImageKit10Lib refers to the Unicode version.
Parameters
Name | Explanation |
---|---|
Index | The index for the image layer where the mouse button was pressed. (0 to 99) |
x, y | The position of the mouse button press in relation to the top left corner of the image layer referred to by the Index parameter (in pixels). In other words, how far the mouse button press is from the top left corner of the image layer. |
* The second parameter in VB.NET/C#.NET is e and it contains the Index and other arguments. (the first letter is lower case)
Explanation
The MouseDownSelectLayerImage event is generated when the mouse cursor is over a layer image and the mouse button is pressed.
If there is more than one image layer at the location where the mouse button was pressed, the top most image will be selected. For example if at the mouse down location there are two image layers as indicated by the Layer property index 0 and 3, the image layer corresponding to index 3 will be selected. (image layers with larger indexes are displayed above image layers with smaller indexes).