Class ItemLongPressEventArgs
Provides data for the ItemLongPress event.
Inheritance
System.Object
ItemLongPressEventArgs
Namespace: Syncfusion.Maui.ListView
Assembly: Syncfusion.Maui.ListView.dll
Syntax
public class ItemLongPressEventArgs : EventArgs
Constructors
ItemLongPressEventArgs(ItemType, Object, Point)
Initializes a new instance of the ItemLongPressEventArgs class.
Declaration
public ItemLongPressEventArgs(ItemType itemType, object dataItem, Point position)
Parameters
Type | Name | Description |
---|---|---|
ItemType | itemType | The item type of the item long pressed item. |
System.Object | dataItem | The item data of the long pressed item. |
Microsoft.Maui.Graphics.Point | position | The touch position of the long pressed item. |
Properties
DataItem
Gets the item data of the long pressed item.
Declaration
public object DataItem { get; }
Property Value
Type | Description |
---|---|
System.Object | An object that represents the item data of the long pressed item. |
Handled
Gets or sets a value indicating whether to handle the event or not.
Declaration
public bool Handled { get; set; }
Property Value
Type |
---|
System.Boolean |
ItemType
Gets the item type of the item long pressed item.
Declaration
public ItemType ItemType { get; }
Property Value
Type | Description |
---|---|
ItemType | It represents the item type of the long pressed item. |
Position
Gets the touch position of the long pressed item.
Declaration
public Point Position { get; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Point | An object that represents the touch position of the long pressed item. |