Back to Devexpress

SvgImageBox.ItemEnter Event

windowsforms-devexpress-dot-xtraeditors-dot-svgimagebox-95c04bdf.md

latest2.5 KB
Original Source

SvgImageBox.ItemEnter Event

Fires when the mouse cursor enters the item’s graphical path or bounding rectangle.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public event SvgImageItemEventHandler ItemEnter
vb
Public Event ItemEnter As SvgImageItemEventHandler

Event Data

The ItemEnter event's data class is SvgImageItemEventArgs. The following properties provide information specific to this event:

PropertyDescription
ItemGets the currently processed item.

Remarks

When the mouse cursor enters the item’s bounds, the SvgImageBox control raises the SvgImageBox.QueryHoveredItem event, and then the ItemEnter event.

When the mouse cursor leaves the item’s bounds, the SvgImageBox.ItemLeave event fires.

The SvgImageBox.ItemHitTestType property affects the item detection (hit-testing). The property can be set to the following values:

  • Precise - An item is detected when a point is within the item’s graphical path. Groups do not have visible contours, and, thus, they cannot be hit-tested and selected in this mode.
  • BoundingBox - An item is detected when a point is within the item’s bounding rectangle. Groups are hit-tested in this mode when a point is within a rectangle within which all child items lie. This hit-test mode allows groups to be hovered (HoveredItem) and selected.

See Also

SvgImageBox Class

SvgImageBox Members

DevExpress.XtraEditors Namespace