GraphicsPath.IsVisible Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Indique si ce GraphicsPath contient le point spécifié.
Surcharges
IsVisible(Point) |
Indique si ce GraphicsPath contient le point spécifié. |
IsVisible(PointF) |
Indique si ce GraphicsPath contient le point spécifié. |
IsVisible(Point, Graphics) |
Indique si ce GraphicsPath contient le point spécifié. |
IsVisible(PointF, Graphics) |
Indique si ce GraphicsPath contient le point spécifié. |
IsVisible(Int32, Int32) |
Indique si ce GraphicsPath contient le point spécifié. |
IsVisible(Single, Single) |
Indique si ce GraphicsPath contient le point spécifié. |
IsVisible(Int32, Int32, Graphics) |
Indique si ce GraphicsPath contient le point spécifié, à l'aide du Graphics spécifié. |
IsVisible(Single, Single, Graphics) |
Indique si le point spécifié est contenu dans ce GraphicsPath, dans la zone de découpage visible du Graphics spécifié. |
IsVisible(Point)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si ce GraphicsPath contient le point spécifié.
public:
bool IsVisible(System::Drawing::Point point);
public bool IsVisible (System.Drawing.Point point);
member this.IsVisible : System.Drawing.Point -> bool
Public Function IsVisible (point As Point) As Boolean
Paramètres
Retours
Cette méthode retourne true
si le point spécifié est contenu dans GraphicsPath ; sinon, false
.
Exemples
Pour obtenir un exemple, consultez GraphicsPath.IsVisible Method (Int32, Int32, Graphics)
.
S’applique à
IsVisible(PointF)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si ce GraphicsPath contient le point spécifié.
public:
bool IsVisible(System::Drawing::PointF point);
public bool IsVisible (System.Drawing.PointF point);
member this.IsVisible : System.Drawing.PointF -> bool
Public Function IsVisible (point As PointF) As Boolean
Paramètres
Retours
Cette méthode retourne true
si le point spécifié est contenu dans GraphicsPath ; sinon, false
.
Exemples
Pour obtenir un exemple, consultez IsVisible(Int32, Int32, Graphics).
S’applique à
IsVisible(Point, Graphics)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si ce GraphicsPath contient le point spécifié.
public:
bool IsVisible(System::Drawing::Point pt, System::Drawing::Graphics ^ graphics);
public bool IsVisible (System.Drawing.Point pt, System.Drawing.Graphics graphics);
public bool IsVisible (System.Drawing.Point pt, System.Drawing.Graphics? graphics);
member this.IsVisible : System.Drawing.Point * System.Drawing.Graphics -> bool
Public Function IsVisible (pt As Point, graphics As Graphics) As Boolean
Paramètres
Retours
Cette méthode retourne true
si le point spécifié est contenu dans GraphicsPath ; sinon, false
.
Exemples
Pour obtenir un exemple, consultez GraphicsPath.IsVisible Method (Int32, Int32, Graphics)
.
Remarques
Les coordonnées du point à tester sont données en coordonnées mondiales. La matrice de transformation du graphics
paramètre est temporairement appliquée avant de tester la visibilité.
S’applique à
IsVisible(PointF, Graphics)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si ce GraphicsPath contient le point spécifié.
public:
bool IsVisible(System::Drawing::PointF pt, System::Drawing::Graphics ^ graphics);
public bool IsVisible (System.Drawing.PointF pt, System.Drawing.Graphics graphics);
public bool IsVisible (System.Drawing.PointF pt, System.Drawing.Graphics? graphics);
member this.IsVisible : System.Drawing.PointF * System.Drawing.Graphics -> bool
Public Function IsVisible (pt As PointF, graphics As Graphics) As Boolean
Paramètres
Retours
Cette méthode retourne true
si le point spécifié figure dans cet objet ; sinon, false
.
Exemples
Pour obtenir un exemple, consultez IsVisible(Int32, Int32, Graphics).
Remarques
Les coordonnées du point à tester sont données en coordonnées mondiales. La matrice de transformation du graphics
paramètre est temporairement appliquée avant de tester la visibilité.
S’applique à
IsVisible(Int32, Int32)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si ce GraphicsPath contient le point spécifié.
public:
bool IsVisible(int x, int y);
public bool IsVisible (int x, int y);
member this.IsVisible : int * int -> bool
Public Function IsVisible (x As Integer, y As Integer) As Boolean
Paramètres
- x
- Int32
Coordonnée x du point à tester.
- y
- Int32
Coordonnée y du point à tester.
Retours
Cette méthode retourne true
si le point spécifié est contenu dans GraphicsPath ; sinon, false
.
Exemples
Pour obtenir un exemple, consultez IsVisible(Int32, Int32, Graphics).
S’applique à
IsVisible(Single, Single)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si ce GraphicsPath contient le point spécifié.
public:
bool IsVisible(float x, float y);
public bool IsVisible (float x, float y);
member this.IsVisible : single * single -> bool
Public Function IsVisible (x As Single, y As Single) As Boolean
Paramètres
- x
- Single
Coordonnée x du point à tester.
- y
- Single
Coordonnée y du point à tester.
Retours
Cette méthode retourne true
si le point spécifié est contenu dans GraphicsPath ; sinon, false
.
Exemples
Pour obtenir un exemple, consultez IsVisible(Int32, Int32, Graphics).
S’applique à
IsVisible(Int32, Int32, Graphics)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si ce GraphicsPath contient le point spécifié, à l'aide du Graphics spécifié.
public:
bool IsVisible(int x, int y, System::Drawing::Graphics ^ graphics);
public bool IsVisible (int x, int y, System.Drawing.Graphics graphics);
public bool IsVisible (int x, int y, System.Drawing.Graphics? graphics);
member this.IsVisible : int * int * System.Drawing.Graphics -> bool
Public Function IsVisible (x As Integer, y As Integer, graphics As Graphics) As Boolean
Paramètres
- x
- Int32
Coordonnée x du point à tester.
- y
- Int32
Coordonnée y du point à tester.
Retours
Cette méthode retourne true
si le point spécifié est contenu dans GraphicsPath ; sinon, false
.
Exemples
L’exemple de code suivant est conçu pour être utilisé avec Windows Forms et nécessite PaintEventArgse
, un objet d’événementOnPaint. Le code effectue les actions suivantes :
Crée un chemin et ajoute une ellipse au chemin.
Teste si le point spécifié est contenu dans le chemin d’accès.
Affiche le résultat dans une boîte de dialogue.
private:
void IsVisibleExample( PaintEventArgs^ e )
{
// Create a path and add an ellipse.
GraphicsPath^ myPath = gcnew GraphicsPath;
myPath->AddEllipse( 0, 0, 100, 100 );
// Test the visibility of point (50, 50).
bool visible = myPath->IsVisible( 50, 50, e->Graphics );
// Show the result.
MessageBox::Show( visible.ToString() );
}
private void IsVisibleExample(PaintEventArgs e)
{
// Create a path and add an ellipse.
GraphicsPath myPath = new GraphicsPath();
myPath.AddEllipse(0, 0, 100, 100);
// Test the visibility of point (50, 50).
bool visible = myPath.IsVisible(50, 50, e.Graphics);
// Show the result.
MessageBox.Show(visible.ToString());
}
Public Sub IsVisibleExample(ByVal e As PaintEventArgs)
Dim myPath As New GraphicsPath
myPath.AddEllipse(0, 0, 100, 100)
Dim visible As Boolean = myPath.IsVisible(50, 50, e.Graphics)
MessageBox.Show(visible.ToString())
End Sub
Remarques
Les coordonnées du point à tester sont données en coordonnées mondiales. La matrice de transformation de graphics
est temporairement appliquée avant de tester la visibilité.
S’applique à
IsVisible(Single, Single, Graphics)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
Indique si le point spécifié est contenu dans ce GraphicsPath, dans la zone de découpage visible du Graphics spécifié.
public:
bool IsVisible(float x, float y, System::Drawing::Graphics ^ graphics);
public bool IsVisible (float x, float y, System.Drawing.Graphics graphics);
public bool IsVisible (float x, float y, System.Drawing.Graphics? graphics);
member this.IsVisible : single * single * System.Drawing.Graphics -> bool
Public Function IsVisible (x As Single, y As Single, graphics As Graphics) As Boolean
Paramètres
- x
- Single
Coordonnée x du point à tester.
- y
- Single
Coordonnée y du point à tester.
Retours
Cette méthode retourne true
si le point spécifié est contenu dans GraphicsPath ; sinon, false
.
Exemples
Pour obtenir un exemple, consultez IsVisible(Int32, Int32, Graphics).
Remarques
Les coordonnées du point à tester sont données en coordonnées mondiales. La matrice de transformation du graphics
paramètre est temporairement appliquée avant de tester la visibilité.
S’applique à
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