Edit

Share via


CGRect.Explicit Operator

Definition

Overloads

Explicit(CGRect to Rectangle)

Converts a CGRect to a Rectangle.

C#
public static explicit operator System.Drawing.Rectangle(CoreGraphics.CGRect rect);

Parameters

rect
CGRect

Returns

Applies to

Xamarin.Mac SDK 14
Product Versions
Xamarin.Mac SDK 14

Explicit(CGRect to RectangleF)

Converts a CGRect to a RectangleF.

C#
public static explicit operator System.Drawing.RectangleF(CoreGraphics.CGRect rect);

Parameters

rect
CGRect

Returns

Applies to

Xamarin.Mac SDK 14
Product Versions
Xamarin.Mac SDK 14