Region.IsVisible Método

Definição

Testa se o retângulo especificado está contido dentro deste Region.Tests whether the specified rectangle is contained within this Region.

Sobrecargas

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

Testa se qualquer parte do retângulo especificado está contida dentro deste Region desenhado usando o Graphics especificado.Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified Graphics.

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

Testa se qualquer parte do retângulo especificado está contida dentro deste Region desenhado usando o Graphics especificado.Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified Graphics.

IsVisible(Single, Single, Single, Single)

Testa se qualquer parte do retângulo especificado está contida dentro deste Region.Tests whether any portion of the specified rectangle is contained within this Region.

IsVisible(Int32, Int32, Int32, Int32)

Testa se qualquer parte do retângulo especificado está contida dentro deste Region.Tests whether any portion of the specified rectangle is contained within this Region.

IsVisible(Single, Single, Graphics)

Testa se o ponto especificado está contido dentro deste Region quando desenhado usando especificado Graphics.Tests whether the specified point is contained within this Region when drawn using the specified Graphics.

IsVisible(Int32, Int32, Graphics)

Testa se o ponto especificado está contido dentro deste objeto Region quando desenhado usando o objeto Graphics especificado.Tests whether the specified point is contained within this Region object when drawn using the specified Graphics object.

IsVisible(Single, Single)

Testa se o ponto especificado está contido neste Region.Tests whether the specified point is contained within this Region.

IsVisible(Point)

Testa se a estrutura Point especificada está contida dentro deste Region.Tests whether the specified Point structure is contained within this Region.

IsVisible(Rectangle, Graphics)

Testa se qualquer parte da estrutura Rectangle especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether any portion of the specified Rectangle structure is contained within this Region when drawn using the specified Graphics.

IsVisible(PointF, Graphics)

Testa se a estrutura PointF especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether the specified PointF structure is contained within this Region when drawn using the specified Graphics.

IsVisible(Point, Graphics)

Testa se a estrutura Point especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether the specified Point structure is contained within this Region when drawn using the specified Graphics.

IsVisible(RectangleF)

Testa se qualquer parte da estrutura RectangleF especificada está contida dentro deste Region.Tests whether any portion of the specified RectangleF structure is contained within this Region.

IsVisible(Rectangle)

Testa se qualquer parte da estrutura Rectangle especificada está contida dentro deste Region.Tests whether any portion of the specified Rectangle structure is contained within this Region.

IsVisible(PointF)

Testa se a estrutura PointF especificada está contida dentro deste Region.Tests whether the specified PointF structure is contained within this Region.

IsVisible(RectangleF, Graphics)

Testa se qualquer parte da estrutura RectangleF especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether any portion of the specified RectangleF structure is contained within this Region when drawn using the specified Graphics.

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

Testa se qualquer parte do retângulo especificado está contida dentro deste Region desenhado usando o Graphics especificado.Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified 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

Parâmetros

x
Single

A coordenada X do canto superior esquerdo do retângulo a ser testado.The x-coordinate of the upper-left corner of the rectangle to test.

y
Single

A coordenada Y do canto superior esquerdo do retângulo a ser testado.The y-coordinate of the upper-left corner of the rectangle to test.

width
Single

A largura do retângulo a ser testado.The width of the rectangle to test.

height
Single

A altura do retângulo a ser testado.The height of the rectangle to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando qualquer parte do retângulo especificado estiver contida dentro deste Region; caso contrário, false.true when any portion of the specified rectangle is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de retângulo na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the rectangle coordinates on the drawing surface.

Aplica-se a

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

Testa se qualquer parte do retângulo especificado está contida dentro deste Region desenhado usando o Graphics especificado.Tests whether any portion of the specified rectangle is contained within this Region when drawn using the specified 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

Parâmetros

x
Int32

A coordenada X do canto superior esquerdo do retângulo a ser testado.The x-coordinate of the upper-left corner of the rectangle to test.

y
Int32

A coordenada Y do canto superior esquerdo do retângulo a ser testado.The y-coordinate of the upper-left corner of the rectangle to test.

width
Int32

A largura do retângulo a ser testado.The width of the rectangle to test.

height
Int32

A altura do retângulo a ser testado.The height of the rectangle to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando qualquer parte do retângulo especificado estiver contida dentro deste Region; caso contrário, false.true when any portion of the specified rectangle is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de retângulo na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the rectangle coordinates on the drawing surface.

Aplica-se a

IsVisible(Single, Single, Single, Single)

Testa se qualquer parte do retângulo especificado está contida dentro deste Region.Tests whether any portion of the specified rectangle is contained within this 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

Parâmetros

x
Single

A coordenada X do canto superior esquerdo do retângulo a ser testado.The x-coordinate of the upper-left corner of the rectangle to test.

y
Single

A coordenada Y do canto superior esquerdo do retângulo a ser testado.The y-coordinate of the upper-left corner of the rectangle to test.

width
Single

A largura do retângulo a ser testado.The width of the rectangle to test.

height
Single

A altura do retângulo a ser testado.The height of the rectangle to test.

Retornos

Boolean

true quando qualquer parte do retângulo especificado estiver contida dentro deste objeto Region; caso contrário, false.true when any portion of the specified rectangle is contained within this Region object; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Aplica-se a

IsVisible(Int32, Int32, Int32, Int32)

Testa se qualquer parte do retângulo especificado está contida dentro deste Region.Tests whether any portion of the specified rectangle is contained within this 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

Parâmetros

x
Int32

A coordenada X do canto superior esquerdo do retângulo a ser testado.The x-coordinate of the upper-left corner of the rectangle to test.

y
Int32

A coordenada Y do canto superior esquerdo do retângulo a ser testado.The y-coordinate of the upper-left corner of the rectangle to test.

width
Int32

A largura do retângulo a ser testado.The width of the rectangle to test.

height
Int32

A altura do retângulo a ser testado.The height of the rectangle to test.

Retornos

Boolean

true quando qualquer parte do retângulo especificado estiver contida dentro deste Region; caso contrário, false.true when any portion of the specified rectangle is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Aplica-se a

IsVisible(Single, Single, Graphics)

Testa se o ponto especificado está contido dentro deste Region quando desenhado usando especificado Graphics.Tests whether the specified point is contained within this Region when drawn using the specified 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

Parâmetros

x
Single

A coordenada X do ponto a ser testado.The x-coordinate of the point to test.

y
Single

A coordenada Y do ponto a ser testado.The y-coordinate of the point to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando o ponto especificado estiver contido dentro deste Region; caso contrário, false.true when the specified point is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de ponto na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the point coordinates on the drawing surface.

Aplica-se a

IsVisible(Int32, Int32, Graphics)

Testa se o ponto especificado está contido dentro deste objeto Region quando desenhado usando o objeto Graphics especificado.Tests whether the specified point is contained within this Region object when drawn using the specified Graphics object.

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

Parâmetros

x
Int32

A coordenada X do ponto a ser testado.The x-coordinate of the point to test.

y
Int32

A coordenada Y do ponto a ser testado.The y-coordinate of the point to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando o ponto especificado estiver contido dentro deste Region; caso contrário, false.true when the specified point is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de ponto na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the point coordinates on the drawing surface.

Aplica-se a

IsVisible(Single, Single)

Testa se o ponto especificado está contido neste Region.Tests whether the specified point is contained within this 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

Parâmetros

x
Single

A coordenada X do ponto a ser testado.The x-coordinate of the point to test.

y
Single

A coordenada Y do ponto a ser testado.The y-coordinate of the point to test.

Retornos

Boolean

true quando o ponto especificado estiver contido dentro deste Region; caso contrário, false.true when the specified point is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Aplica-se a

IsVisible(Point)

Testa se a estrutura Point especificada está contida dentro deste Region.Tests whether the specified Point structure is contained within this 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

Parâmetros

point
Point

A estrutura Point a ser testada.The Point structure to test.

Retornos

Boolean

true quando point estiver contido dentro deste Region; caso contrário, false.true when point is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Aplica-se a

IsVisible(Rectangle, Graphics)

Testa se qualquer parte da estrutura Rectangle especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether any portion of the specified Rectangle structure is contained within this Region when drawn using the specified 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

Parâmetros

rect
Rectangle

A estrutura Rectangle a ser testada.The Rectangle structure to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando qualquer parte do rect estiver contida dentro deste Region; caso contrário, false.true when any portion of the rect is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de retângulo na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the rectangle coordinates on the drawing surface.

Aplica-se a

IsVisible(PointF, Graphics)

Testa se a estrutura PointF especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether the specified PointF structure is contained within this Region when drawn using the specified 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

Parâmetros

point
PointF

A estrutura PointF a ser testada.The PointF structure to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando point estiver contido dentro deste Region; caso contrário, false.true when point is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de ponto na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the point coordinates on the drawing surface.

Aplica-se a

IsVisible(Point, Graphics)

Testa se a estrutura Point especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether the specified Point structure is contained within this Region when drawn using the specified 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

Parâmetros

point
Point

A estrutura Point a ser testada.The Point structure to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando point estiver contido dentro deste Region; caso contrário, false.true when point is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de ponto na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the point coordinates on the drawing surface.

Aplica-se a

IsVisible(RectangleF)

Testa se qualquer parte da estrutura RectangleF especificada está contida dentro deste Region.Tests whether any portion of the specified RectangleF structure is contained within this 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

Parâmetros

rect
RectangleF

A estrutura RectangleF a ser testada.The RectangleF structure to test.

Retornos

Boolean

true quando qualquer parte do rect estiver contida dentro deste Region; caso contrário, false.true when any portion of rect is contained within this Region; otherwise, false.

Exemplos

O exemplo de código a seguir foi projetado para uso com Windows Forms, e ele requer PaintEventArgs e , que é um parâmetro do Paint manipulador de eventos.The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. O código executa as seguintes ações:The code performs the following actions:

  • Cria o primeiro retângulo e o desenha na tela em azul.Creates the first rectangle and draws it to the screen in blue.

  • Cria o segundo retângulo e o desenha na tela em vermelho.Creates the second rectangle and draws it to the screen in red.

  • Cria uma região do primeiro retângulo.Creates a region from the first rectangle.

  • Determina se qualquer parte do retângulo interseccionada com a região.Determines if any portion of the rectangle intersects with the region.

  • Exibe o true false resultado ou na tela.Displays the true or false result on the screen.

Observe que o retângulo cruza a região, portanto, o resultado é true .Notice that the rectangle intersects the region, so the result is 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

Aplica-se a

IsVisible(Rectangle)

Testa se qualquer parte da estrutura Rectangle especificada está contida dentro deste Region.Tests whether any portion of the specified Rectangle structure is contained within this 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

Parâmetros

rect
Rectangle

A estrutura Rectangle a ser testada.The Rectangle structure to test.

Retornos

Boolean

Este método retornará true quando qualquer parte do rect estiver contida dentro deste Region; caso contrário, false.This method returns true when any portion of rect is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Aplica-se a

IsVisible(PointF)

Testa se a estrutura PointF especificada está contida dentro deste Region.Tests whether the specified PointF structure is contained within this 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

Parâmetros

point
PointF

A estrutura PointF a ser testada.The PointF structure to test.

Retornos

Boolean

true quando point estiver contido dentro deste Region; caso contrário, false.true when point is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Aplica-se a

IsVisible(RectangleF, Graphics)

Testa se qualquer parte da estrutura RectangleF especificada está contida dentro deste Region quando desenhada usando o Graphics especificado.Tests whether any portion of the specified RectangleF structure is contained within this Region when drawn using the specified 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

Parâmetros

rect
RectangleF

A estrutura RectangleF a ser testada.The RectangleF structure to test.

g
Graphics

Um Graphics que representa um contexto de gráficos.A Graphics that represents a graphics context.

Retornos

Boolean

true quando rect estiver contido dentro deste Region; caso contrário, false.true when rect is contained within this Region; otherwise, false.

Exemplos

Para obter um exemplo de código, consulte o IsVisible(RectangleF) método.For a code example, see the IsVisible(RectangleF) method.

Comentários

A transformação atual do contexto de gráficos é usada para calcular a região interior e as coordenadas de retângulo na superfície de desenho.The current transformation of the graphics context is used to compute the region interior and the rectangle coordinates on the drawing surface.

Aplica-se a