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)

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

지정된 사각형의 일부라도 이 Region에 들어 있는 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 화면에서 영역 내부 및 사각형 좌표를 계산하는 데 사용됩니다.

적용 대상

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

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

지정된 사각형의 일부라도 이 Region에 들어 있는 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 화면에서 영역 내부 및 사각형 좌표를 계산하는 데 사용됩니다.

적용 대상

IsVisible(Single, Single, Single, Single)

Source:
Region.cs
Source:
Region.cs
Source:
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

테스트할 사각형의 높이입니다.

반환

지정된 사각형의 일부라도 이 Region 개체에 들어 있는 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

적용 대상

IsVisible(Int32, Int32, Int32, Int32)

Source:
Region.cs
Source:
Region.cs
Source:
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

테스트할 사각형의 높이입니다.

반환

지정된 사각형의 일부라도 이 Region에 들어 있는 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

적용 대상

IsVisible(Single, Single, Graphics)

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

지정된 점이 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 표면의 영역 내부 및 점 좌표를 계산하는 데 사용됩니다.

적용 대상

IsVisible(Int32, Int32, Graphics)

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

지정된 점이 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 표면의 영역 내부 및 점 좌표를 계산하는 데 사용됩니다.

적용 대상

IsVisible(Single, Single)

Source:
Region.cs
Source:
Region.cs
Source:
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좌표입니다.

반환

지정된 점이 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

적용 대상

IsVisible(Point)

Source:
Region.cs
Source:
Region.cs
Source:
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 구조체입니다.

반환

point가 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

적용 대상

IsVisible(Rectangle, Graphics)

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

rect의 일부라도 이 Region에 들어 있는 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 화면에서 영역 내부 및 사각형 좌표를 계산하는 데 사용됩니다.

적용 대상

IsVisible(PointF, Graphics)

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

point가 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 표면의 영역 내부 및 점 좌표를 계산하는 데 사용됩니다.

적용 대상

IsVisible(Point, Graphics)

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

point가 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 표면의 영역 내부 및 점 좌표를 계산하는 데 사용됩니다.

적용 대상

IsVisible(RectangleF)

Source:
Region.cs
Source:
Region.cs
Source:
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 구조체입니다.

반환

rect의 일부라도 이 Region에 들어 있는 경우 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

다음 코드 예제는 Windows Forms 사용하도록 설계되었으며 이벤트 처리기의 Paint 매개 변수인 가 필요합니다.PaintEventArgse 코드는 다음 작업을 수행합니다.

  • 첫 번째 사각형을 만들고 파란색으로 화면에 그립니다.

  • 두 번째 사각형을 만들고 빨간색으로 화면에 그립니다.

  • 첫 번째 사각형에서 영역을 만듭니다.

  • 사각형의 일부가 지역과 교차하는지 여부를 확인합니다.

  • 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)

Source:
Region.cs
Source:
Region.cs
Source:
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 구조체입니다.

반환

rect의 일부라도 이 Region에 들어 있는 경우 이 메서드에서는 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

적용 대상

IsVisible(PointF)

Source:
Region.cs
Source:
Region.cs
Source:
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 구조체입니다.

반환

point가 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

적용 대상

IsVisible(RectangleF, Graphics)

Source:
Region.cs
Source:
Region.cs
Source:
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입니다.

반환

rect가 이 Region에 포함되면 true이고, 그렇지 않으면 false입니다.

예제

코드 예제는 메서드를 참조하세요 IsVisible(RectangleF) .

설명

그래픽 컨텍스트의 현재 변환은 드로잉 화면에서 영역 내부 및 사각형 좌표를 계산하는 데 사용됩니다.

적용 대상