This class exposes properties for the MouseDownImage, MouseMoveImage, and MouseUpImage events.
[Visual Basic] Public Class
MouseUpDownEventArgs Inherits EventArgs
[C#] public class MouseUpDownEventArgsF
EventArgs
Explanation
Property | Type | Explanation |
---|---|---|
Button | Integer (Visual Basic) int (C#) |
The type of button clicked (1: Left Button, 2: Right Button, 4: Center Button) |
Shift | Integer (Visual Basic) int (C#) |
The type of key pressed (0: None, 1: Shift Key, 2: Ctrl Key, 4: Alt Key) *1 |
OriginX | Integer (Visual Basic) int (C#) |
The horizontal distance from the left side of the ImageKit Control to the left side of the image. (If the image is larger than the ImageKit Control in the horizontal direction, OriginX will equal 0.) |
OriginY | Integer (Visual Basic) int (C#) |
The vertical distance from the top of the ImageKit Control to the top of the image. (If the image is larger than the ImageKit Control in the vertical direction, OriginY will equal 0.) |
Left | Integer (Visual Basic) int (C#) |
The horizontal distance from the left side of the actual image to the left side of that portion of the image currently being displayed . |
Top | Integer (Visual Basic) int (C#) |
The vertical distance from the top of the actual image to the top of that portion of the image currently being displayed. |
Right | Integer (Visual Basic) int (C#) |
The horizontal distance from the left side of the actual image to the right side of that portion of the image currently being displayed. |
Bottom | Integer (Visual Basic) int (C#) |
The vertical distance from the top of the actual image to the top of that portion of the image currently being displayed. |
ScaleWidth | Double (Visual Basic) double (C#) |
The horizontal scale between the displayed portion of the image and the actual image . |
ScaleHeight | Double (Visual Basic) double (C#) |
The vertical scale between the original image and the displayed image. |
X | Integer (Visual Basic) int (C#) |
X coordinates on the image where the mouse button was pressed. |
Y | Integer (Visual Basic) int (C#) |
Y coordinates on the image where the mouse button was pressed. |
The values are in pixels.
*1 When multiple keys are pressed at the same time, the Shift value is a bitwise OR operation
See Also
ImageKit Members | Newtone.ImageKit.Win.ImageKit