GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / ContainsPoint Method
A PointF in document coordinates.
In This Topic
    ContainsPoint Method (GoObject)
    In This Topic
    Determine if a given point is inside and on this object.
    Syntax
    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.

    See Also