GoDiagram Web Reference
PickObject Method (GoView)

If true, consider objects in document layers.
If true, consider objects in view layers.
The PointF in document coordinates at which to search.
If true, skip over any objects whose CanSelect property is false.
Find a visible object at a given point.
Syntax
'Declaration
 
Public Overridable Function PickObject( _
   ByVal doc As Boolean, _
   ByVal view As Boolean, _
   ByVal p As PointF, _
   ByVal selectableOnly As Boolean _
) As GoObject
public virtual GoObject PickObject( 
   bool doc,
   bool view,
   PointF p,
   bool selectableOnly
)

Parameters

doc
If true, consider objects in document layers.
view
If true, consider objects in view layers.
p
The PointF in document coordinates at which to search.
selectableOnly
If true, skip over any objects whose CanSelect property is false.

Return Value

A GoObject that contains the p, or null if no such object exists.
Remarks
This method never actually selects any object--use GoSelection instead. 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.
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
PickObject Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback