Class ItemClickEventArgs
Represents the event arguments for item click related events.
Inheritance
Inherited Members
Namespace: Manina.Windows.Forms
Assembly: ImageListView.dll
Syntax
[Serializable]
[ComVisible(true)]
public class ItemClickEventArgs : EventArgs
Constructors
| Improve this Doc View SourceItemClickEventArgs(ImageListViewItem, Int32, Point, MouseButtons)
Initializes a new instance of the ItemClickEventArgs class.
Declaration
public ItemClickEventArgs(ImageListViewItem item, int subItemIndex, Point location, MouseButtons buttons)
Parameters
Type | Name | Description |
---|---|---|
ImageListViewItem | item | The item that is the target of this event. |
System.Int32 | subItemIndex | Gets the index of the sub item under the hit point. |
System.Drawing.Point | location | The location of the mouse. |
System.Windows.Forms.MouseButtons | buttons | One of the System.Windows.Forms.MouseButtons values indicating which mouse button was pressed. |
Properties
| Improve this Doc View SourceButtons
Gets the state of the mouse buttons.
Declaration
public MouseButtons Buttons { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.MouseButtons |
Item
Gets the ImageListViewItem that is the target of the event.
Declaration
public ImageListViewItem Item { get; }
Property Value
Type | Description |
---|---|
ImageListViewItem |
Location
Gets the coordinates of the cursor.
Declaration
public Point Location { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Point |
SubItemIndex
Gets the index of the sub item under the hit point. The index returned is the 0-based index of the column as displayed on the screen, considering column visibility and display indices. Returns -1 if the hit point is not over a sub item.
Declaration
public int SubItemIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
X
Gets the x-coordinates of the cursor.
Declaration
public int X { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Y
Gets the y-coordinates of the cursor.
Declaration
public int Y { get; }
Property Value
Type | Description |
---|---|
System.Int32 |