GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoDocument Class / PickObject Method
A PointF location in document coordinates.
In This Topic
    PickObject Method (GoDocument)
    In This Topic
    Find the top-most (front-most) document object at a given point.
    Syntax
    public virtual GoObject PickObject( 
       PointF p,
       bool selectableOnly
    )

    Parameters

    p
    A PointF location in document coordinates.
    selectableOnly
    Remarks
    This iterates over the collection of layers, backwards from top to bottom, calling GoLayer.PickObject. If selectableOnly is true but CanSelectObjects is false, this method returns null. Please note that if an object is found, it might not be a top-level object. In fact, when selectableOnly is false, it is very likely that if any object is found at the given point, it will be a child of some group.
    See Also