GoDiagram Win Reference
PickObject Method (GoLayer)

the point in document coordinates
this is passed on to calls to GoObject.Pick
Find a visible object in this layer at a given point.
Syntax
'Declaration
 
Public Function PickObject( _
   ByVal p As PointF, _
   ByVal selectableOnly As Boolean _
) As GoObject
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.
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

GoLayer Class
GoLayer Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback