Skip to main content

BaseLeafPrimitive.HitTestEnabled Property

Gets or sets whether the hit-testing feature is enabled for the current object.

Namespace: DevExpress.XtraGauges.Core.Primitive

Assembly: DevExpress.XtraGauges.v24.1.Core.dll

NuGet Package: DevExpress.Gauges.Core

Declaration

[Browsable(false)]
public bool HitTestEnabled { get; set; }

Property Value

Type Description
Boolean

true if the hit-testing feature is enabled for the current object; otherwise, false.

Remarks

The hit-testing feature allows you to identify an object’s element located under a specific point. To get information on an object’s element located under a specific point, the BaseLeafPrimitive.CalcHitInfo method must be called. This method requires a test point to be passed as a parameter. The CalcHitInfo method only returns information on the elements that have the HitTestEnabled property set to true. If the CalcHitInfo method is called for the point belonging to an element whose HitTestEnabled property is set to false, the method will not return any information on this element.

See Also