Back to Devexpress

DockPanel.GetHitInfo(Point) Method

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-dot-gethitinfo-x28-system-dot-drawing-dot-point-x29.md

latest2.2 KB
Original Source

DockPanel.GetHitInfo(Point) Method

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

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override HitInfo GetHitInfo(
    Point ptClient
)
vb
Public Overrides Function GetHitInfo(
    ptClient As Point
) As HitInfo

Parameters

NameTypeDescription
ptClientPoint

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

|

Returns

TypeDescription
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.

See Also

GetDockPanelAtPos(Point)

DockPanel Class

DockPanel Members

DevExpress.XtraBars.Docking Namespace