GraphicsPath.IsVisible メソッド

定義

指定した点がこの GraphicsPath に含まれているかどうかを示します。

オーバーロード

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 に含まれているかどうかを示します。

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

戻り値

このメソッドは、指定した点がこの GraphicsPath の中に含まれる場合は true を返します。それ以外の場合は false を返します。

例については、「GraphicsPath.IsVisible Method (Int32, Int32, Graphics)」を参照してください。

適用対象

IsVisible(PointF)

ソース:
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

戻り値

このメソッドは、指定した点がこの GraphicsPath の中に含まれる場合は true を返します。それ以外の場合は false を返します。

例については、「IsVisible(Int32, Int32, Graphics)」を参照してください。

適用対象

IsVisible(Point, Graphics)

ソース:
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

graphics
Graphics

参照可能範囲をテストする Graphics

戻り値

このメソッドは、指定した点がこの GraphicsPath の中に含まれる場合は true を返します。それ以外の場合は false を返します。

例については、「GraphicsPath.IsVisible Method (Int32, Int32, Graphics)」を参照してください。

注釈

テストするポイントの座標は、ワールド座標で指定されます。 パラメーターの graphics 変換マトリックスは、可視性をテストする前に一時的に適用されます。

適用対象

IsVisible(PointF, Graphics)

ソース:
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

graphics
Graphics

参照可能範囲をテストする Graphics

戻り値

このメソッドは、指定した点がこのオブジェクトの中に含まれる場合は true を返します。それ以外の場合は false を返します。

例については、「IsVisible(Int32, Int32, Graphics)」を参照してください。

注釈

テストするポイントの座標は、ワールド座標で指定されます。 パラメーターの graphics 変換マトリックスは、可視性をテストする前に一時的に適用されます。

適用対象

IsVisible(Int32, Int32)

ソース:
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 座標。

戻り値

このメソッドは、指定した点がこの GraphicsPath の中に含まれる場合は true を返します。それ以外の場合は false を返します。

例については、「IsVisible(Int32, Int32, Graphics)」を参照してください。

適用対象

IsVisible(Single, Single)

ソース:
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 座標。

戻り値

このメソッドは、指定した点がこの GraphicsPath の中に含まれる場合は true を返します。それ以外の場合は false を返します。

例については、「IsVisible(Int32, Int32, Graphics)」を参照してください。

適用対象

IsVisible(Int32, Int32, Graphics)

ソース:
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

戻り値

このメソッドは、指定した点がこの GraphicsPath の中に含まれる場合は true を返します。それ以外の場合は false を返します。

次のコード例は、Windows フォームで使用するように設計されており、イベント オブジェクトがOnPaint必要PaintEventArgseです。 コードは、次のアクションを実行します。

  • パスを作成し、パスに省略記号を追加します。

  • 指定したポイントがパス内に含まれているかどうかをテストします。

  • ダイアログ ボックスに結果を表示します。

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 の表示されているクリップ領域にある、この 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

戻り値

このメソッドは、指定した点がこの GraphicsPath の中に含まれる場合は true を返します。それ以外の場合は false を返します。

例については、「IsVisible(Int32, Int32, Graphics)」を参照してください。

注釈

テストするポイントの座標は、ワールド座標で指定されます。 パラメーターの graphics 変換マトリックスは、可視性をテストする前に一時的に適用されます。

適用対象