GoDiagram Web Reference
PickObject Method (GoDocument)

A PointF location in document coordinates.
Find the top-most (front-most) document object at a given point.
Syntax
'Declaration
 
Public Overridable Function PickObject( _
   ByVal p As PointF, _
   ByVal selectableOnly As Boolean _
) As GoObject
public virtual GoObject PickObject( 
   PointF p,
   bool selectableOnly
)

Parameters

p
A PointF location in document coordinates.
selectableOnly
Remarks
This iterates over the collection of layers, backwards from top to bottom, calling GoLayer.PickObject. 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

GoDocument Class
GoDocument Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback