Skip to main content
A newer version of this page is available. .

DockPanel.GetHitInfo(Point) Method

Returns information about the panel’s element located at the specified point.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

public override HitInfo GetHitInfo(
    Point ptClient
)

Parameters

Name Type Description
ptClient Point

A Point structure specifying the test point coordinates relative to the panel’s top-left corner.

Returns

Type Description
HitInfo

A HitInfo object containing information on the panel’s element at the test point.

Remarks

Use the GetHitInfo method to obtain details on the element located at the specified point. The ptClient parameter should specify the point relative to the panel’s top left corner. Read the HitInfo.HitTest property of the returned object to get the element’s type.

The DockManager.GetDockPanelAtPos method allows you to get the dock panel (if any) located under the specified point.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetHitInfo(Point) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also