Skip to main content

TcxCustomGridHitTest.HitTestCode Method

Returns the hit code of the inspected grid element.

Declaration

class function HitTestCode: Integer;

Returns

Type
Integer

Remarks

Call the HitTestCode function to identify the visual element located at the inspected point. If the inspected point does not belong to the TcxGrid control client area; the HitTestCode function returns htError.

Refer to the OnCustomDrawPartBackground event description for an example on how to use the HitTestCode method.

See Also