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)

指定した Graphicsを使用して、指定したポイントがこの GraphicsPath内に含まれているかどうかを示します。

IsVisible(Single, Single, Graphics)

指定したポイントがこの GraphicsPath 内の指定した Graphicsの表示クリップ領域に含まれているかどうかを示します。

IsVisible(Point)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

指定したポイントがこの GraphicsPath内に含まれているかどうかを示します。

public bool IsVisible (System.Drawing.Point point);

パラメーター

point
Point

テストするポイントを表す Point

戻り値

このメソッドは、指定したポイントがこの GraphicsPath内に含まれている場合、true を返します。それ以外の場合は、falseします。

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IsVisible(PointF)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

指定したポイントがこの GraphicsPath内に含まれているかどうかを示します。

public bool IsVisible (System.Drawing.PointF point);

パラメーター

point
PointF

テストするポイントを表す PointF

戻り値

このメソッドは、指定したポイントがこの GraphicsPath内に含まれている場合、true を返します。それ以外の場合は、falseします。

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IsVisible(Point, Graphics)

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

パラメーター

pt
Point

テストするポイントを表す Point

graphics
Graphics

可視性をテストする Graphics

戻り値

このメソッドは、指定したポイントがこの GraphicsPath内に含まれている場合、true を返します。それ以外の場合は、falseします。

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

注釈

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IsVisible(PointF, Graphics)

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

パラメーター

pt
PointF

テストするポイントを表す PointF

graphics
Graphics

可視性をテストする Graphics

戻り値

このメソッドは、指定したポイントがこの中に含まれている場合、true を返します。それ以外の場合は、falseします。

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

注釈

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IsVisible(Int32, Int32)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

指定したポイントがこの GraphicsPath内に含まれているかどうかを示します。

public bool IsVisible (int x, int y);

パラメーター

x
Int32

テストする点の x 座標。

y
Int32

テストする点の y 座標。

戻り値

このメソッドは、指定したポイントがこの GraphicsPath内に含まれている場合、true を返します。それ以外の場合は、falseします。

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IsVisible(Single, Single)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

指定したポイントがこの GraphicsPath内に含まれているかどうかを示します。

public bool IsVisible (float x, float y);

パラメーター

x
Single

テストする点の x 座標。

y
Single

テストする点の y 座標。

戻り値

このメソッドは、指定したポイントがこの GraphicsPath内に含まれている場合、true を返します。それ以外の場合は、falseします。

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IsVisible(Int32, Int32, Graphics)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

指定した Graphicsを使用して、指定したポイントがこの GraphicsPath内に含まれているかどうかを示します。

public bool IsVisible (int x, int y, System.Drawing.Graphics? graphics);
public bool IsVisible (int x, int y, System.Drawing.Graphics graphics);

パラメーター

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 = 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());
}

注釈

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

IsVisible(Single, Single, Graphics)

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

パラメーター

x
Single

テストする点の x 座標。

y
Single

テストする点の y 座標。

graphics
Graphics

可視性をテストする Graphics

戻り値

このメソッドは、指定したポイントがこの GraphicsPath内に含まれている場合、true を返します。それ以外の場合は、falseします。

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

注釈

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

適用対象

.NET 9 およびその他のバージョン
製品 バージョン
.NET 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9