CGRect.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Contains(CGPoint) |
Determines if the specified point is contained within this CGRect structure. |
Contains(CGRect) |
Determines if the rectangular region represented by |
Contains(Double, Double) |
|
Contains(nfloat, nfloat) |
Determines if the specified point is contained within this CGRect structure. |
Contains(Single, Single) |
Determines if the specified point is contained within this CGRect structure. |
Contains(CGPoint)
Determines if the specified point is contained within this CGRect structure.
public bool Contains (CoreGraphics.CGPoint point);
member this.Contains : CoreGraphics.CGPoint -> bool
Parameters
Returns
This method returns true if the point represented by point
is contained within this CGRect structure; otherwise false.
Remarks
The containing rectangle must be normalized for this method to return accurate results.
Applies to
Contains(CGRect)
Determines if the rectangular region represented by rect
is entirely contained within this CGRect structure.
public bool Contains (CoreGraphics.CGRect rect);
member this.Contains : CoreGraphics.CGRect -> bool
Parameters
Returns
This method returns true if the rectangular region represented by rect
is entirely contained within this CGRect structure; otherwise false.
Remarks
The containing rectangle must be normalized for this method to return accurate results.
Applies to
Contains(Double, Double)
Contains(nfloat, nfloat)
Determines if the specified point is contained within this CGRect structure.
public bool Contains (nfloat x, nfloat y);
member this.Contains : nfloat * nfloat -> bool
Parameters
- x
- nfloat
The x-coordinate of the point to test.
- y
- nfloat
The y-coordinate of the point to test.
Returns
This method returns true if the point defined by x
and y
is contained within this CGRect structure; otherwise false.
Remarks
The containing rectangle must be normalized for this method to return accurate results.