GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLayer Class / PickObject Method
the point in document coordinates
this is passed on to calls to GoObject.Pick
In This Topic
    PickObject Method (GoLayer)
    In This Topic
    Find a visible object in this layer at a given point.
    Syntax
    public GoObject PickObject( 
       PointF p,
       bool selectableOnly
    )

    Parameters

    p
    the point in document coordinates
    selectableOnly
    this is passed on to calls to GoObject.Pick

    Return Value

    the result of GoObject.Pick; null if no object contains the point p
    Remarks
    This method calls GoObject.Pick on each object in this layer until a call returns an object, which is returned by this method. The objects are tested in reverse order in which they are painted, so as to get the "top-most" object at the given point p. If CanViewObjects is false, this method does nothing. 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