[]
        
(Showing Draft Content)

C1.Win.C1DynamicHelp.UIElementResolver.GetUIElementAtPoint

GetUIElementAtPoint Method

GetUIElementAtPoint(object, Point)

Retrieves the child UI element located at the specified coordinates.

Declaration
protected virtual object GetUIElementAtPoint(object parent, Point pt)
Parameters
Type Name Description
object parent

The object containing the UI elements.

Point pt

A Point that contains the coordinates where you want to look for a UI element. Coordinates are relative to the upper-left corner of the parent client area.

Returns
Type Description
object

A child UI element located at the specified point.

Remarks

Typically, in this overridden method you check if this parent type needs this special handling, and if it does not (if its children are Control objects, so they can be found automatically by C1DynamicHelp), simply call the method of the base class UIElementResolver: base.GetUIElementAtPoint(parent, pt).