Back to Devexpress

DockManager.GetDockPanelAtPos(Point) Method

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-dot-getdockpanelatpos-x28-system-dot-drawing-dot-point-x29.md

latest2.1 KB
Original Source

DockManager.GetDockPanelAtPos(Point) Method

Returns the panel located under the specified point.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public DockPanel GetDockPanelAtPos(
    Point ptScreen
)
vb
Public Function GetDockPanelAtPos(
    ptScreen As Point
) As DockPanel

Parameters

NameTypeDescription
ptScreenPoint

A Point structure representing the test point’s coordinates relative to the top-left corner of the screen.

|

Returns

TypeDescription
DockPanel

A DockPanel object representing the dock panel located under the specified point. null ( Nothing in Visual Basic) if no dock panel is located under the test point.

|

Remarks

Use the GetDockPanelAtPos method to obtain the dock panel located at the specified screen coordinates.

To get details on the panel’s element which is located under the test point, use the DockPanel.GetHitInfo method.

See Also

GetHitInfo(Point)

DockManager Class

DockManager Members

DevExpress.XtraBars.Docking Namespace