GoDiagram Win Reference
PickObjectsInRectangle Method (GoView)

If true, consider objects in document layers.
If true, consider objects in view layers.
A RectangleF in document coordinates.
If GoPickInRectangleStyle.SelectableOnlyContained or GoPickInRectangleStyle.SelectableOnlyIntersectsBounds, only consider objects for which 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.
Return a collection of objects that are surrounded by a given rectangle.
Syntax
'Declaration
 
Public Function PickObjectsInRectangle( _
   ByVal doc As Boolean, _
   ByVal view As Boolean, _
   ByVal rect As RectangleF, _
   ByVal pickstyle As GoPickInRectangleStyle, _
   ByVal coll As IGoCollection, _
   ByVal max As Integer _
) As IGoCollection
public IGoCollection PickObjectsInRectangle( 
   bool doc,
   bool view,
   RectangleF rect,
   GoPickInRectangleStyle pickstyle,
   IGoCollection coll,
   int max
)

Parameters

doc
If true, consider objects in document layers.
view
If true, consider objects in view layers.
rect
A RectangleF in document coordinates.
pickstyle
If GoPickInRectangleStyle.SelectableOnlyContained or GoPickInRectangleStyle.SelectableOnlyIntersectsBounds, only consider objects for which 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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoView Class
GoView Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback