GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoDocument Class / PickObjectsInRectangle Method
A RectangleF in document coordinates.
If GoPickInRectangleStyle.SelectableOnlyContained or GoPickInRectangleStyle.SelectableOnlyIntersectsBounds, only consider objects for which GoObject.CanSelect is true.
An IGoCollection that is modified by adding results and then returned. If this value is null, a GoCollection is allocated and returned.
A limit on the number of objects to be found and added to the result collection.
In This Topic
    PickObjectsInRectangle Method (GoDocument)
    In This Topic
    Return a collection of objects that are surrounded by a given rectangle.
    Syntax

    Parameters

    rect
    A RectangleF in document coordinates.
    pickstyle
    If GoPickInRectangleStyle.SelectableOnlyContained or GoPickInRectangleStyle.SelectableOnlyIntersectsBounds, only consider objects for which GoObject.CanSelect is true.
    coll
    An IGoCollection that is modified by adding results and then returned. If this value is null, a GoCollection is allocated and returned.
    max
    A limit on the number of objects to be found and added to the result collection.

    Return Value

    The coll argument, or a newly allocated one if that was null.
    Remarks
    This basically calls GoLayer.GoLayer.PickObjectsInRectangle on each layer in this document. If pickstyle is GoPickInRectangleStyle.SelectableOnlyContained and CanSelectObjects is false, this will not add any objects to the result collection.
    See Also