SKRectI.Contains Method

Definition

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.

Applies to