Region.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(Point) |
Returns |
Contains(Double, Double) |
Returns |
Contains(Point)
- Source:
- Region.cs
- Source:
- Region.cs
Returns true
if the specified point is inside the region. Otherwise, returns false
.
public:
bool Contains(Microsoft::Maui::Graphics::Point pt);
public bool Contains (Microsoft.Maui.Graphics.Point pt);
member this.Contains : Microsoft.Maui.Graphics.Point -> bool
Public Function Contains (pt As Point) As Boolean
Parameters
- pt
- Point
The point to check.
Returns
true
if the specified point is inside the region. Otherwise, false
.
Applies to
Contains(Double, Double)
- Source:
- Region.cs
- Source:
- Region.cs
Returns true
if the point that is represented by the specified coordinates is inside the region. Otherwise, returns false
.
public:
bool Contains(double x, double y);
public bool Contains (double x, double y);
member this.Contains : double * double -> bool
Public Function Contains (x As Double, y As Double) As Boolean
Parameters
- x
- Double
The X-coordinate to check.
- y
- Double
The Y-coordinate to check.
Returns
true
if the specified point that is represented by the specified coordinates is inside the region. Otherwise, false
.
Applies to
.NET MAUI