Back to Devexpress

SvgImageBox.ItemHitTestType Property

windowsforms-devexpress-dot-xtraeditors-dot-svgimagebox-e1cf663a.md

latest2.0 KB
Original Source

SvgImageBox.ItemHitTestType Property

Gets or sets the item hit-test type.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
[DefaultValue(ItemHitTestType.Precise)]
public ItemHitTestType ItemHitTestType { get; set; }
vb
<DefaultValue(ItemHitTestType.Precise)>
Public Property ItemHitTestType As ItemHitTestType

Property Value

TypeDefaultDescription
DevExpress.XtraEditors.ItemHitTestTypePrecise

The item detection type.

|

Remarks

The SvgImageBox control performs item hit-testing when you hover over items. The ItemHitTestType property specifies whether to perform hit-testing by items’ graphical paths or bounding boxes. The property accepts 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