語言

GraphicsPath.IsVisible 方法

定義

表示指定點是否包含於此 GraphicsPath內。

多載

名稱 Description
IsVisible(Point)

表示指定點是否包含於此 GraphicsPath內。

IsVisible(PointF)

表示指定點是否包含於此 GraphicsPath內。

IsVisible(Point, Graphics)

表示指定點是否包含於此 GraphicsPath內。

IsVisible(PointF, Graphics)

表示指定點是否包含於此 GraphicsPath內。

IsVisible(Int32, Int32)

表示指定點是否包含於此 GraphicsPath內。

IsVisible(Single, Single)

表示指定點是否包含於此 GraphicsPath內。

IsVisible(Int32, Int32, Graphics)

表示指定點是否包含於此 GraphicsPath,使用指定的 Graphics。

IsVisible(Single, Single, Graphics)

表示指定點是否包含於該 GraphicsPath 區域 Graphics的可見剪裁區域內。

IsVisible(Point)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於此 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

參數

point
Point

Point A 代表要測試的點。

傳回

若指定點包含於此true;否則,該GraphicsPath方法會回傳false。

範例

如需範例,請參閱 GraphicsPath.IsVisible Method (Int32, Int32, Graphics)。

適用於

IsVisible(PointF)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於此 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

參數

point
PointF

PointF A 代表要測試的點。

傳回

若指定點包含於此true;否則,該GraphicsPath方法會回傳false。

範例

如需範例,請參閱 IsVisible(Int32, Int32, Graphics)。

適用於

IsVisible(Point, Graphics)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於此 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

參數

pt
Point

Point A 代表要測試的點。

graphics
Graphics

Graphics為了測試能見度。

傳回

若指定點包含於此true;否則,該GraphicsPath方法會回傳false。

範例

如需範例,請參閱 GraphicsPath.IsVisible Method (Int32, Int32, Graphics)。

備註

待測點的座標以世界座標表示。 參數的 graphics 轉換矩陣會暫時套用,然後再測試可見性。

適用於

IsVisible(PointF, Graphics)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於此 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

參數

pt
PointF

PointF A 代表要測試的點。

graphics
Graphics

Graphics為了測試能見度。

傳回

若指定點包含於此,此方法會回傳true;否則,。 false

範例

如需範例,請參閱 IsVisible(Int32, Int32, Graphics)。

備註

待測點的座標以世界座標表示。 參數的 graphics 轉換矩陣會暫時套用,然後再測試可見性。

適用於

IsVisible(Int32, Int32)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於此 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

參數

x
Int32

要測點的 x 座標。

y
Int32

測試點的 y 座標。

傳回

若指定點包含於此true;否則,該GraphicsPath方法會回傳false。

範例

如需範例,請參閱 IsVisible(Int32, Int32, Graphics)。

適用於

IsVisible(Single, Single)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於此 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

參數

x
Single

要測點的 x 座標。

y
Single

測試點的 y 座標。

傳回

若指定點包含於此true;否則,該GraphicsPath方法會回傳false。

範例

如需範例,請參閱 IsVisible(Int32, Int32, Graphics)。

適用於

IsVisible(Int32, Int32, Graphics)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於此 GraphicsPath,使用指定的 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

參數

x
Int32

要測點的 x 座標。

y
Int32

測試點的 y 座標。

graphics
Graphics

Graphics為了測試能見度。

傳回

若指定點包含於此true;否則,該GraphicsPath方法會回傳false。

範例

以下程式碼範例是為 Windows Forms 設計,並需要 PaintEventArgse,一個 OnPaint 事件物件。 此程式碼會執行下列動作:

  • 建立一條路徑,並在路徑上加入一個橢圓。

  • 測試指定點是否包含在路徑內。

  • 結果會顯示在對話框中。

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

備註

待測點的座標以世界座標表示。 在測試可見性之前,會暫時套用 的 graphics 轉換矩陣。

適用於

IsVisible(Single, Single, Graphics)

來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs
來源:
GraphicsPath.cs

表示指定點是否包含於該 GraphicsPath 區域 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

參數

x
Single

要測點的 x 座標。

y
Single

測試點的 y 座標。

graphics
Graphics

Graphics為了測試能見度。

傳回

若指定點包含於此true;否則,該GraphicsPath方法會回傳false。

範例

如需範例,請參閱 IsVisible(Int32, Int32, Graphics)。

備註

待測點的座標以世界座標表示。 參數的 graphics 轉換矩陣會暫時套用,然後再測試可見性。

適用於