SKRectI.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(SKPointI) |
Determines whether the specified point is inside this rectangle. |
Contains(SKRectI) |
Determines whether the specified rectangle is inside this rectangle. |
Contains(Int32, Int32) |
Determines whether the specified coordinates are inside this rectangle. |
Contains(SKPointI)
Determines whether the specified point is inside this rectangle.
public bool Contains (SkiaSharp.SKPointI pt);
public readonly bool Contains (SkiaSharp.SKPointI pt);
Parameters
- pt
- SKPointI
The point to test.
Returns
Returns true if the point is inside this rectangle, otherwise false.
Applies to
Contains(SKRectI)
Determines whether the specified rectangle is inside this rectangle.
public bool Contains (SkiaSharp.SKRectI rect);
public readonly bool Contains (SkiaSharp.SKRectI rect);
Parameters
- rect
- SKRectI
The rectangle to test.
Returns
Returns true if the rectangle is inside this rectangle, otherwise false.
Applies to
Contains(Int32, Int32)
Determines whether the specified coordinates are inside this rectangle.
public bool Contains (int x, int y);
public readonly bool Contains (int x, int y);
Parameters
- x
- Int32
The x-coordinate.
- y
- Int32
The y-coordinate.
Returns
Returns true if the coordinates are inside this rectangle, otherwise false.