GraphicsPath.IsVisible Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Anger om den angivna punkten finns i den här GraphicsPath.
Överlagringar
| Name | Description |
|---|---|
| IsVisible(Point) |
Anger om den angivna punkten finns i den här GraphicsPath. |
| IsVisible(PointF) |
Anger om den angivna punkten finns i den här GraphicsPath. |
| IsVisible(Point, Graphics) |
Anger om den angivna punkten finns i den här GraphicsPath. |
| IsVisible(PointF, Graphics) |
Anger om den angivna punkten finns i den här GraphicsPath. |
| IsVisible(Int32, Int32) |
Anger om den angivna punkten finns i den här GraphicsPath. |
| IsVisible(Single, Single) |
Anger om den angivna punkten finns i den här GraphicsPath. |
| IsVisible(Int32, Int32, Graphics) |
Anger om den angivna punkten finns i den här GraphicsPath, med den angivna Graphics. |
| IsVisible(Single, Single, Graphics) |
Anger om den angivna punkten finns i detta GraphicsPath i det synliga klippområdet för den angivna Graphics. |
IsVisible(Point)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i den här GraphicsPath.
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
Parametrar
Returer
Den här metoden returnerar true om den angivna punkten finns i den här GraphicsPath; annars . false
Exempel
Ett exempel finns i GraphicsPath.IsVisible Method (Int32, Int32, Graphics).
Gäller för
IsVisible(PointF)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i den här GraphicsPath.
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
Parametrar
Returer
Den här metoden returnerar true om den angivna punkten finns i den här GraphicsPath; annars . false
Exempel
Ett exempel finns i IsVisible(Int32, Int32, Graphics).
Gäller för
IsVisible(Point, Graphics)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i den här GraphicsPath.
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
Parametrar
Returer
Den här metoden returnerar true om den angivna punkten finns i den här GraphicsPath; annars . false
Exempel
Ett exempel finns i GraphicsPath.IsVisible Method (Int32, Int32, Graphics).
Kommentarer
Koordinaterna för den punkt som ska testas anges i världskoordinater. Parameterns graphics transformeringsmatris tillämpas tillfälligt innan du testar synligheten.
Gäller för
IsVisible(PointF, Graphics)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i den här GraphicsPath.
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
Parametrar
Returer
Den här metoden returnerar true om den angivna punkten finns i detta, annars false.
Exempel
Ett exempel finns i IsVisible(Int32, Int32, Graphics).
Kommentarer
Koordinaterna för den punkt som ska testas anges i världskoordinater. Parameterns graphics transformeringsmatris tillämpas tillfälligt innan du testar synligheten.
Gäller för
IsVisible(Int32, Int32)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i den här GraphicsPath.
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
Parametrar
- x
- Int32
X-koordinaten för den punkt som ska testas.
- y
- Int32
Y-koordinaten för den punkt som ska testas.
Returer
Den här metoden returnerar true om den angivna punkten finns i den här GraphicsPath; annars . false
Exempel
Ett exempel finns i IsVisible(Int32, Int32, Graphics).
Gäller för
IsVisible(Single, Single)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i den här GraphicsPath.
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
Parametrar
- x
- Single
X-koordinaten för den punkt som ska testas.
- y
- Single
Y-koordinaten för den punkt som ska testas.
Returer
Den här metoden returnerar true om den angivna punkten finns i den här GraphicsPath; annars . false
Exempel
Ett exempel finns i IsVisible(Int32, Int32, Graphics).
Gäller för
IsVisible(Int32, Int32, Graphics)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i den här GraphicsPath, med den angivna Graphics.
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
Parametrar
- x
- Int32
X-koordinaten för den punkt som ska testas.
- y
- Int32
Y-koordinaten för den punkt som ska testas.
Returer
Den här metoden returnerar true om den angivna punkten finns i den här GraphicsPath; annars . false
Exempel
Följande kodexempel är utformat för användning med Windows Forms och kräver PaintEventArgse, ett OnPaint händelseobjekt. Koden utför följande åtgärder:
Skapar en sökväg och lägger till en ellips i sökvägen.
Testar om den angivna punkten finns i sökvägen.
Visar resultatet i en dialogruta.
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
Kommentarer
Koordinaterna för den punkt som ska testas anges i världskoordinater. Transformeringsmatrisen graphics för tillämpas tillfälligt innan du testar för synlighet.
Gäller för
IsVisible(Single, Single, Graphics)
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
- Källa:
- GraphicsPath.cs
Anger om den angivna punkten finns i detta GraphicsPath i det synliga klippområdet för den angivna Graphics.
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
Parametrar
- x
- Single
X-koordinaten för den punkt som ska testas.
- y
- Single
Y-koordinaten för den punkt som ska testas.
Returer
Den här metoden returnerar true om den angivna punkten finns i den här GraphicsPath; annars . false
Exempel
Ett exempel finns i IsVisible(Int32, Int32, Graphics).
Kommentarer
Koordinaterna för den punkt som ska testas anges i världskoordinater. Parameterns graphics transformeringsmatris tillämpas tillfälligt innan du testar synligheten.