言語

Region.IsVisible メソッド

定義

指定した四角形がこの Region内に含まれているかどうかをテストします。

オーバーロード

名前 説明
IsVisible(Single, Single, Single, Single, Graphics)

指定したRegionを使用して描画するときに、指定した四角形の一部がこのGraphics内に含まれているかどうかをテストします。

IsVisible(Int32, Int32, Int32, Int32, Graphics)

指定したRegionを使用して描画するときに、指定した四角形の一部がこのGraphics内に含まれているかどうかをテストします。

IsVisible(Single, Single, Single, Single)

指定した四角形の一部がこの Region内に含まれているかどうかをテストします。

IsVisible(Int32, Int32, Int32, Int32)

指定した四角形の一部がこの Region内に含まれているかどうかをテストします。

IsVisible(Single, Single, Graphics)

指定したRegionを使用して描画するときに、指定したポイントがこのGraphics内に含まれているかどうかをテストします。

IsVisible(Int32, Int32, Graphics)

指定したRegion オブジェクトを使用して描画するときに、指定したポイントがこのGraphics オブジェクト内に含まれているかどうかをテストします。

IsVisible(Single, Single)

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

IsVisible(Point)

指定した Point 構造体がこの Region内に含まれているかどうかをテストします。

IsVisible(Rectangle, Graphics)

指定したRectangleを使用して描画するときに、指定したRegion構造体の一部がこのGraphics内に含まれているかどうかをテストします。

IsVisible(PointF, Graphics)

指定したPointFを使用して描画するときに、指定したRegion構造体がこのGraphics内に含まれているかどうかをテストします。

IsVisible(Point, Graphics)

指定したPointを使用して描画するときに、指定したRegion構造体がこのGraphics内に含まれているかどうかをテストします。

IsVisible(RectangleF)

指定した RectangleF 構造体の一部がこの Region内に含まれているかどうかをテストします。

IsVisible(Rectangle)

指定した Rectangle 構造体の一部がこの Region内に含まれているかどうかをテストします。

IsVisible(PointF)

指定した PointF 構造体がこの Region内に含まれているかどうかをテストします。

IsVisible(RectangleF, Graphics)

指定したRectangleFを使用して描画するときに、指定したRegion構造体の一部がこのGraphics内に含まれているかどうかをテストします。

IsVisible(Single, Single, Single, Single, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したRegionを使用して描画するときに、指定した四角形の一部がこのGraphics内に含まれているかどうかをテストします。

public:
 bool IsVisible(float x, float y, float width, float height, System::Drawing::Graphics ^ g);
public bool IsVisible(float x, float y, float width, float height, System.Drawing.Graphics? g);
public bool IsVisible(float x, float y, float width, float height, System.Drawing.Graphics g);
member this.IsVisible : single * single * single * single * System.Drawing.Graphics -> bool
Public Function IsVisible (x As Single, y As Single, width As Single, height As Single, g As Graphics) As Boolean

パラメーター

x
Single

テストする四角形の左上隅の x 座標。

y
Single

テストする四角形の左上隅の y 座標。

width
Single

テストする四角形の幅。

height
Single

テストする四角形の高さ。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true 指定した四角形の一部がこの Region内に含まれている場合は a0/>。それ以外の場合は false

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイスの領域の内部および四角形の座標を計算するために使用されます。

適用対象

IsVisible(Int32, Int32, Int32, Int32, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したRegionを使用して描画するときに、指定した四角形の一部がこのGraphics内に含まれているかどうかをテストします。

public:
 bool IsVisible(int x, int y, int width, int height, System::Drawing::Graphics ^ g);
public bool IsVisible(int x, int y, int width, int height, System.Drawing.Graphics? g);
public bool IsVisible(int x, int y, int width, int height, System.Drawing.Graphics g);
member this.IsVisible : int * int * int * int * System.Drawing.Graphics -> bool
Public Function IsVisible (x As Integer, y As Integer, width As Integer, height As Integer, g As Graphics) As Boolean

パラメーター

x
Int32

テストする四角形の左上隅の x 座標。

y
Int32

テストする四角形の左上隅の y 座標。

width
Int32

テストする四角形の幅。

height
Int32

テストする四角形の高さ。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true 指定した四角形の一部がこの Region内に含まれている場合は a0/>。それ以外の場合は false

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイスの領域の内部および四角形の座標を計算するために使用されます。

適用対象

IsVisible(Single, Single, Single, Single)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定した四角形の一部がこの Region内に含まれているかどうかをテストします。

public:
 bool IsVisible(float x, float y, float width, float height);
public bool IsVisible(float x, float y, float width, float height);
member this.IsVisible : single * single * single * single -> bool
Public Function IsVisible (x As Single, y As Single, width As Single, height As Single) As Boolean

パラメーター

x
Single

テストする四角形の左上隅の x 座標。

y
Single

テストする四角形の左上隅の y 座標。

width
Single

テストする四角形の幅。

height
Single

テストする四角形の高さ。

返品

true 指定した四角形の一部がこの Region オブジェクト内に含まれている場合は a0/>。それ以外の場合は false

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

適用対象

IsVisible(Int32, Int32, Int32, Int32)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定した四角形の一部がこの Region内に含まれているかどうかをテストします。

public:
 bool IsVisible(int x, int y, int width, int height);
public bool IsVisible(int x, int y, int width, int height);
member this.IsVisible : int * int * int * int -> bool
Public Function IsVisible (x As Integer, y As Integer, width As Integer, height As Integer) As Boolean

パラメーター

x
Int32

テストする四角形の左上隅の x 座標。

y
Int32

テストする四角形の左上隅の y 座標。

width
Int32

テストする四角形の幅。

height
Int32

テストする四角形の高さ。

返品

true 指定した四角形の一部がこの Region内に含まれている場合は a0/>。それ以外の場合は false

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

適用対象

IsVisible(Single, Single, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したRegionを使用して描画するときに、指定したポイントがこのGraphics内に含まれているかどうかをテストします。

public:
 bool IsVisible(float x, float y, System::Drawing::Graphics ^ g);
public bool IsVisible(float x, float y, System.Drawing.Graphics? g);
public bool IsVisible(float x, float y, System.Drawing.Graphics g);
member this.IsVisible : single * single * System.Drawing.Graphics -> bool
Public Function IsVisible (x As Single, y As Single, g As Graphics) As Boolean

パラメーター

x
Single

テストする点の x 座標。

y
Single

テストする点の y 座標。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true 指定したポイントがこの Region内に含まれている場合は a0/>。それ以外の場合は false

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイス上の領域の内部および点座標を計算するために使用されます。

適用対象

IsVisible(Int32, Int32, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したRegion オブジェクトを使用して描画するときに、指定したポイントがこのGraphics オブジェクト内に含まれているかどうかをテストします。

public:
 bool IsVisible(int x, int y, System::Drawing::Graphics ^ g);
public bool IsVisible(int x, int y, System.Drawing.Graphics? g);
public bool IsVisible(int x, int y, System.Drawing.Graphics g);
member this.IsVisible : int * int * System.Drawing.Graphics -> bool
Public Function IsVisible (x As Integer, y As Integer, g As Graphics) As Boolean

パラメーター

x
Int32

テストする点の x 座標。

y
Int32

テストする点の y 座標。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true 指定したポイントがこの Region内に含まれている場合は a0/>。それ以外の場合は false

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイス上の領域の内部および点座標を計算するために使用されます。

適用対象

IsVisible(Single, Single)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

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

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 指定したポイントがこの Region内に含まれている場合は a0/>。それ以外の場合は false

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

適用対象

IsVisible(Point)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定した Point 構造体がこの Region内に含まれているかどうかをテストします。

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 構造体。

返品

true pointがこのRegion内に含まれている場合は。それ以外の場合はfalse

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

適用対象

IsVisible(Rectangle, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したRectangleを使用して描画するときに、指定したRegion構造体の一部がこのGraphics内に含まれているかどうかをテストします。

public:
 bool IsVisible(System::Drawing::Rectangle rect, System::Drawing::Graphics ^ g);
public bool IsVisible(System.Drawing.Rectangle rect, System.Drawing.Graphics? g);
public bool IsVisible(System.Drawing.Rectangle rect, System.Drawing.Graphics g);
member this.IsVisible : System.Drawing.Rectangle * System.Drawing.Graphics -> bool
Public Function IsVisible (rect As Rectangle, g As Graphics) As Boolean

パラメーター

rect
Rectangle

テストする Rectangle 構造体。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true rectの一部がこのRegion内に含まれている場合は >。それ以外の場合はfalse

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイスの領域の内部および四角形の座標を計算するために使用されます。

適用対象

IsVisible(PointF, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したPointFを使用して描画するときに、指定したRegion構造体がこのGraphics内に含まれているかどうかをテストします。

public:
 bool IsVisible(System::Drawing::PointF point, System::Drawing::Graphics ^ g);
public bool IsVisible(System.Drawing.PointF point, System.Drawing.Graphics? g);
public bool IsVisible(System.Drawing.PointF point, System.Drawing.Graphics g);
member this.IsVisible : System.Drawing.PointF * System.Drawing.Graphics -> bool
Public Function IsVisible (point As PointF, g As Graphics) As Boolean

パラメーター

point
PointF

テストする PointF 構造体。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true pointがこのRegion内に含まれている場合は。それ以外の場合はfalse

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイス上の領域の内部および点座標を計算するために使用されます。

適用対象

IsVisible(Point, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したPointを使用して描画するときに、指定したRegion構造体がこのGraphics内に含まれているかどうかをテストします。

public:
 bool IsVisible(System::Drawing::Point point, System::Drawing::Graphics ^ g);
public bool IsVisible(System.Drawing.Point point, System.Drawing.Graphics? g);
public bool IsVisible(System.Drawing.Point point, System.Drawing.Graphics g);
member this.IsVisible : System.Drawing.Point * System.Drawing.Graphics -> bool
Public Function IsVisible (point As Point, g As Graphics) As Boolean

パラメーター

point
Point

テストする Point 構造体。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true pointがこのRegion内に含まれている場合は。それ以外の場合はfalse

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイス上の領域の内部および点座標を計算するために使用されます。

適用対象

IsVisible(RectangleF)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定した RectangleF 構造体の一部がこの Region内に含まれているかどうかをテストします。

public:
 bool IsVisible(System::Drawing::RectangleF rect);
public bool IsVisible(System.Drawing.RectangleF rect);
member this.IsVisible : System.Drawing.RectangleF -> bool
Public Function IsVisible (rect As RectangleF) As Boolean

パラメーター

rect
RectangleF

テストする RectangleF 構造体。

返品

true rectの一部がこのRegion内に含まれている場合は。それ以外の場合はfalse

次のコード例は、Windows フォームで使用するように設計されており、PaintEventArgse が必要です。これは、Paint イベント ハンドラーのパラメーターです。 コードは次のアクションを実行します。

  • 最初の四角形を作成し、青で画面に描画します。

  • 2 番目の四角形を作成し、赤で画面に描画します。

  • 最初の四角形から領域を作成します。

  • 四角形の一部が領域と交差するかどうかを決定します。

  • trueまたはfalse結果を画面に表示します。

四角形が領域と交差しているため、結果は true

public:
   void IsVisible_RectF_Example( PaintEventArgs^ e )
   {
      // Create the first rectangle and draw it to the screen in blue.
      Rectangle regionRect = Rectangle(20,20,100,100);
      e->Graphics->DrawRectangle( Pens::Blue, regionRect );

      // Create the second rectangle and draw it to the screen in red.
      RectangleF myRect = RectangleF(90,30,100,100);
      e->Graphics->DrawRectangle( Pens::Red, Rectangle::Round( myRect ) );

      // Create a region using the first rectangle.
      System::Drawing::Region^ myRegion = gcnew System::Drawing::Region( regionRect );

      // Determine if myRect is contained in the region.
      bool contained = myRegion->IsVisible( myRect );

      // Display the result.
      System::Drawing::Font^ myFont = gcnew System::Drawing::Font( "Arial",8 );
      SolidBrush^ myBrush = gcnew SolidBrush( Color::Black );
      e->Graphics->DrawString( String::Format( "contained = {0}", contained ), myFont, myBrush, PointF(20,140) );
   }
public void IsVisible_RectF_Example(PaintEventArgs e)
{
             
    // Create the first rectangle and draw it to the screen in blue.
    Rectangle regionRect = new Rectangle(20, 20, 100, 100);
    e.Graphics.DrawRectangle(Pens.Blue, regionRect);
             
    // Create the second rectangle and draw it to the screen in red.
    RectangleF myRect = new RectangleF(90, 30, 100, 100);
    e.Graphics.DrawRectangle(Pens.Red, Rectangle.Round(myRect));
             
    // Create a region using the first rectangle.
    Region myRegion = new Region(regionRect);
             
    // Determine if myRect is contained in the region.
    bool contained = myRegion.IsVisible(myRect);
             
    // Display the result.
    Font myFont = new Font("Arial", 8);
    SolidBrush myBrush = new SolidBrush(Color.Black);
    e.Graphics.DrawString("contained = " + contained.ToString(),
        myFont,
        myBrush,
        new PointF(20, 140));
}
Public Sub IsVisible_RectF_Example(ByVal e As PaintEventArgs)

    ' Create the first rectangle and draw it to the screen in blue.
    Dim regionRect As New Rectangle(20, 20, 100, 100)
    e.Graphics.DrawRectangle(Pens.Blue, regionRect)

    ' create the second rectangle and draw it to the screen in red.
    Dim myRect As New RectangleF(90, 30, 100, 100)
    e.Graphics.DrawRectangle(Pens.Red, Rectangle.Round(myRect))

    ' Create a region using the first rectangle.
    Dim myRegion As New [Region](regionRect)

    ' Determine if myRect is contained in the region.
    Dim contained As Boolean = myRegion.IsVisible(myRect)

    ' Display the result.
    Dim myFont As New Font("Arial", 8)
    Dim myBrush As New SolidBrush(Color.Black)
    e.Graphics.DrawString("contained = " & contained.ToString(), _
    myFont, myBrush, New PointF(20, 140))
End Sub

適用対象

IsVisible(Rectangle)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定した Rectangle 構造体の一部がこの Region内に含まれているかどうかをテストします。

public:
 bool IsVisible(System::Drawing::Rectangle rect);
public bool IsVisible(System.Drawing.Rectangle rect);
member this.IsVisible : System.Drawing.Rectangle -> bool
Public Function IsVisible (rect As Rectangle) As Boolean

パラメーター

rect
Rectangle

テストする Rectangle 構造体。

返品

このメソッドは、trueの一部がこのrect内に含まれている場合はRegionを返します。それ以外の場合はfalse

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

適用対象

IsVisible(PointF)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定した PointF 構造体がこの Region内に含まれているかどうかをテストします。

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 構造体。

返品

true pointがこのRegion内に含まれている場合は。それ以外の場合はfalse

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

適用対象

IsVisible(RectangleF, Graphics)

ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs
ソース:
Region.cs

指定したRectangleFを使用して描画するときに、指定したRegion構造体の一部がこのGraphics内に含まれているかどうかをテストします。

public:
 bool IsVisible(System::Drawing::RectangleF rect, System::Drawing::Graphics ^ g);
public bool IsVisible(System.Drawing.RectangleF rect, System.Drawing.Graphics? g);
public bool IsVisible(System.Drawing.RectangleF rect, System.Drawing.Graphics g);
member this.IsVisible : System.Drawing.RectangleF * System.Drawing.Graphics -> bool
Public Function IsVisible (rect As RectangleF, g As Graphics) As Boolean

パラメーター

rect
RectangleF

テストする RectangleF 構造体。

g
Graphics

グラフィックス コンテキストを表す Graphics

返品

true rectがこのRegion内に含まれている場合は。それ以外の場合はfalse

コード例については、 IsVisible(RectangleF) メソッドを参照してください。

注釈

グラフィックス コンテキストの現在の変換は、描画サーフェイスの領域の内部および四角形の座標を計算するために使用されます。

適用対象