GoDiagram Web Reference
ContainsPoint Method (GoObject)

A PointF in document coordinates.
Determine if a given point is inside and on this object.
Syntax
'Declaration
 
Public Overridable Function ContainsPoint( _
   ByVal p As PointF _
) As Boolean
public virtual bool ContainsPoint( 
   PointF p
)

Parameters

p
A PointF in document coordinates.

Return Value

True if the argument p is considered to be "in" this object.
Remarks

This method tries to return true for points near a stroke or near or inside a possibly filled object such as an ellipse or a polygon. This method ignores any drop shadow, but normally includes the width of any Pen.

The default behavior of this method is to return true if the point p is within this object's Bounds. If this object's Width or Height are zero, the given point p has to be exactly on for this predicate to return true. However, some classes, such as GoStroke that is inherently somewhat "one dimensional", may intentionally be more forgiving by supporting some margin nearby where a point can be considered to be "inside" the object.

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

GoObject Class
GoObject Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback