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)
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)
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour