GraphicsPath.IsVisible Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist.
Überlädt
IsVisible(Point) |
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist. |
IsVisible(PointF) |
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist. |
IsVisible(Point, Graphics) |
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist. |
IsVisible(PointF, Graphics) |
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist. |
IsVisible(Int32, Int32) |
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist. |
IsVisible(Single, Single) |
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist. |
IsVisible(Int32, Int32, Graphics) |
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist und dass dabei das angegebene Graphics-Objekt verwendet wird. |
IsVisible(Single, Single, Graphics) |
Gibt an, ob der angegebene Punkt in diesem GraphicsPath im sichtbaren Clipbereich des angegebenen Graphics-Objekts enthalten ist. |
IsVisible(Point)
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist.
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
Parameter
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt in diesem GraphicsPath enthalten ist, andernfalls false
.
Beispiele
Ein Beispiel finden Sie unter GraphicsPath.IsVisible Method (Int32, Int32, Graphics)
.
Gilt für:
IsVisible(PointF)
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist.
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
Parameter
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt in diesem GraphicsPath enthalten ist, andernfalls false
.
Beispiele
Ein Beispiel finden Sie unter IsVisible(Int32, Int32, Graphics).
Gilt für:
IsVisible(Point, Graphics)
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist.
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
Parameter
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt in diesem GraphicsPath enthalten ist, andernfalls false
.
Beispiele
Ein Beispiel finden Sie unter GraphicsPath.IsVisible Method (Int32, Int32, Graphics)
.
Hinweise
Die Koordinaten des zu prüfenden Punkts werden in Weltkoordinaten angegeben. Die Transformationsmatrix des graphics
Parameters wird vorübergehend angewendet, bevor die Sichtbarkeit getestet wird.
Gilt für:
IsVisible(PointF, Graphics)
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist.
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
Parameter
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt darin enthalten ist, andernfalls false
.
Beispiele
Ein Beispiel finden Sie unter IsVisible(Int32, Int32, Graphics).
Hinweise
Die Koordinaten des zu prüfenden Punkts werden in Weltkoordinaten angegeben. Die Transformationsmatrix des graphics
Parameters wird vorübergehend angewendet, bevor die Sichtbarkeit getestet wird.
Gilt für:
IsVisible(Int32, Int32)
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist.
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
Parameter
- x
- Int32
Die x-Koordinate des Punktes, der überprüft werden soll.
- y
- Int32
Die y-Koordinate des Punktes, der überprüft werden soll.
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt in diesem GraphicsPath enthalten ist, andernfalls false
.
Beispiele
Ein Beispiel finden Sie unter IsVisible(Int32, Int32, Graphics).
Gilt für:
IsVisible(Single, Single)
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist.
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
Parameter
- x
- Single
Die x-Koordinate des Punktes, der überprüft werden soll.
- y
- Single
Die y-Koordinate des Punktes, der überprüft werden soll.
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt in diesem GraphicsPath enthalten ist, andernfalls false
.
Beispiele
Ein Beispiel finden Sie unter IsVisible(Int32, Int32, Graphics).
Gilt für:
IsVisible(Int32, Int32, Graphics)
Gibt an, dass der angegebene Punkt in diesem GraphicsPath enthalten ist und dass dabei das angegebene Graphics-Objekt verwendet wird.
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
Parameter
- x
- Int32
Die x-Koordinate des Punktes, der überprüft werden soll.
- y
- Int32
Die y-Koordinate des Punktes, der überprüft werden soll.
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt in diesem GraphicsPath enthalten ist, andernfalls false
.
Beispiele
Das folgende Codebeispiel ist für die Verwendung mit Windows Forms konzipiert und erfordert PaintEventArgse
, ein OnPaint Ereignisobjekt. Der Code führt die folgenden Aktionen aus:
Erstellt einen Pfad und fügt dem Pfad eine Ellipse hinzu.
Testet, ob der angegebene Punkt im Pfad enthalten ist.
Zeigt das Ergebnis in einem Dialogfeld an.
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
Hinweise
Die Koordinaten des zu prüfenden Punkts werden in Weltkoordinaten angegeben. Die Transformationsmatrix von graphics
wird vorübergehend angewendet, bevor die Sichtbarkeit getestet wird.
Gilt für:
IsVisible(Single, Single, Graphics)
Gibt an, ob der angegebene Punkt in diesem GraphicsPath im sichtbaren Clipbereich des angegebenen Graphics-Objekts enthalten ist.
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
Parameter
- x
- Single
Die x-Koordinate des Punktes, der überprüft werden soll.
- y
- Single
Die y-Koordinate des Punktes, der überprüft werden soll.
Gibt zurück
Diese Methode gibt true
zurück, wenn der angegebene Punkt in diesem GraphicsPath enthalten ist, andernfalls false
.
Beispiele
Ein Beispiel finden Sie unter IsVisible(Int32, Int32, Graphics).
Hinweise
Die Koordinaten des zu prüfenden Punkts werden in Weltkoordinaten angegeben. Die Transformationsmatrix des graphics
Parameters wird vorübergehend angewendet, bevor die Sichtbarkeit getestet wird.
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Tickets als Feedbackmechanismus für Inhalte auslaufen lassen und es durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unter:Feedback senden und anzeigen für