GraphicsPath.IsVisible Metoda

Definice

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

Přetížení

IsVisible(Point)

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

IsVisible(PointF)

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

IsVisible(Point, Graphics)

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

IsVisible(PointF, Graphics)

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

IsVisible(Int32, Int32)

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

IsVisible(Single, Single)

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

IsVisible(Int32, Int32, Graphics)

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu pomocí zadaného Graphicsbodu .

IsVisible(Single, Single, Graphics)

Určuje, jestli je zadaný bod obsažen v této GraphicsPath oblasti viditelného klipu zadaného Graphicsobjektu .

IsVisible(Point)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

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

Parametry

point
Point

A Point , který představuje bod, který se má testovat.

Návraty

Tato metoda vrátítrue, pokud je zadaný bod obsažen v tomto GraphicsPath; v opačném případě . false

Příklady

Příklad naleznete v tématu GraphicsPath.IsVisible Method (Int32, Int32, Graphics).

Platí pro

IsVisible(PointF)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

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

Parametry

point
PointF

A PointF , který představuje bod, který se má testovat.

Návraty

Tato metoda vrátítrue, pokud je zadaný bod obsažen v tomto GraphicsPath; v opačném případě . false

Příklady

Příklad naleznete v tématu IsVisible(Int32, Int32, Graphics).

Platí pro

IsVisible(Point, Graphics)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

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

Parametry

pt
Point

A Point , který představuje bod, který se má testovat.

graphics
Graphics

Pro Graphics kterou chcete otestovat viditelnost.

Návraty

Tato metoda vrátítrue, pokud je zadaný bod obsažen v tomto GraphicsPath; v opačném případě . false

Příklady

Příklad naleznete v tématu GraphicsPath.IsVisible Method (Int32, Int32, Graphics).

Poznámky

Souřadnice testovaného bodu jsou uvedeny ve světových souřadnicích. Transformační matice parametru graphics se dočasně použije před testováním viditelnosti.

Platí pro

IsVisible(PointF, Graphics)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

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

Parametry

pt
PointF

A PointF , který představuje bod, který se má testovat.

graphics
Graphics

Pro Graphics kterou chcete otestovat viditelnost.

Návraty

Tato metoda vrátí true , pokud je zadaný bod obsažen v tomto, v opačném případě false.

Příklady

Příklad naleznete v tématu IsVisible(Int32, Int32, Graphics).

Poznámky

Souřadnice testovaného bodu jsou uvedeny ve světových souřadnicích. Transformační matice parametru graphics se dočasně použije před testováním viditelnosti.

Platí pro

IsVisible(Int32, Int32)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

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

Parametry

x
Int32

Souřadnice x bodu, který se má testovat.

y
Int32

Souřadnice y bodu, který se má testovat.

Návraty

Tato metoda vrátítrue, pokud je zadaný bod obsažen v tomto GraphicsPath; v opačném případě . false

Příklady

Příklad naleznete v tématu IsVisible(Int32, Int32, Graphics).

Platí pro

IsVisible(Single, Single)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu .

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

Parametry

x
Single

Souřadnice x bodu, který se má testovat.

y
Single

Souřadnice y bodu, který se má testovat.

Návraty

Tato metoda vrátítrue, pokud je zadaný bod obsažen v tomto GraphicsPath; v opačném případě . false

Příklady

Příklad naleznete v tématu IsVisible(Int32, Int32, Graphics).

Platí pro

IsVisible(Int32, Int32, Graphics)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, zda je zadaný bod obsažen v tomto GraphicsPathobjektu pomocí zadaného Graphicsbodu .

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

Parametry

x
Int32

Souřadnice x bodu, který se má testovat.

y
Int32

Souřadnice y bodu, který se má testovat.

graphics
Graphics

Pro Graphics kterou chcete otestovat viditelnost.

Návraty

Tato metoda vrátítrue, pokud je zadaný bod obsažen v tomto GraphicsPath; v opačném případě . false

Příklady

Následující příklad kódu je navržený pro použití s model Windows Forms a vyžaduje PaintEventArgseobjekt OnPaint události . Kód provede následující akce:

  • Vytvoří cestu a přidá do cesty tři tečky.

  • Testuje, zda je zadaný bod obsažen v cestě.

  • Zobrazí výsledek v dialogovém okně.

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

Poznámky

Souřadnice testovaného bodu jsou uvedeny ve světových souřadnicích. Transformační matice se graphics dočasně použije před testováním viditelnosti.

Platí pro

IsVisible(Single, Single, Graphics)

Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs
Zdroj:
GraphicsPath.cs

Určuje, jestli je zadaný bod obsažen v této GraphicsPath oblasti viditelného klipu zadaného Graphicsobjektu .

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

Parametry

x
Single

Souřadnice x bodu, který se má testovat.

y
Single

Souřadnice y bodu, který se má testovat.

graphics
Graphics

Pro Graphics kterou chcete otestovat viditelnost.

Návraty

Tato metoda vrátítrue, pokud je zadaný bod obsažen v tomto GraphicsPath; v opačném případě . false

Příklady

Příklad naleznete v tématu IsVisible(Int32, Int32, Graphics).

Poznámky

Souřadnice testovaného bodu jsou uvedeny ve světových souřadnicích. Transformační matice parametru graphics se dočasně použije před testováním viditelnosti.

Platí pro