RectangleF.Implicit(Rectangle to RectangleF) RectangleF.Implicit(Rectangle to RectangleF) RectangleF.Implicit(Rectangle to RectangleF) RectangleF.Implicit(Rectangle to RectangleF) Operator

Definição

Converte a estrutura especificada Rectangle em uma estrutura RectangleF.Converts the specified Rectangle structure to a RectangleF structure.

public:
 static operator System::Drawing::RectangleF(System::Drawing::Rectangle r);
public static implicit operator System.Drawing.RectangleF (System.Drawing.Rectangle r);
static member op_Implicit : System.Drawing.Rectangle -> System.Drawing.RectangleF
Public Shared Widening Operator CType (r As Rectangle) As RectangleF

Parâmetros

r
Rectangle Rectangle Rectangle Rectangle

A estrutura Rectangle a ser convertida.The Rectangle structure to convert.

Retornos

A estrutura RectangleF que é convertida da estrutura Rectangle especificada.The RectangleF structure that is converted from the specified Rectangle structure.

Exemplos

O exemplo de código a seguir demonstra como usar Implicitos RectangleFMembros Equality e.The following code example demonstrates how to use the Implicit, RectangleFand Equality members. Este exemplo foi projetado para uso com um Windows Form.This example is designed for use with a Windows Form. Cole esse código em um formulário e chame o ConvertRectangleToRectangleF método ao manipular o evento do Paint formulário, passando e como PaintEventArgs.Paste this code into a form and call the ConvertRectangleToRectangleF method when handling the form's Paint event, passing e as PaintEventArgs.

System.Drawing.RectanglesAndPoints#6System.Drawing.RectanglesAndPoints#6

Aplica-se a