Share via


UIBezierPath.FromRoundedRect Method

Definition

Overloads

Name Description
FromRoundedRect(CGRect, NFloat)

Factory method to create a UIBezierPath from a rounded rectangle.

FromRoundedRect(CGRect, UIRectCorner, CGSize)

FromRoundedRect(CGRect, NFloat)

Factory method to create a UIBezierPath from a rounded rectangle.

[Foundation.Export("bezierPathWithRoundedRect:cornerRadius:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIBezierPath FromRoundedRect(CoreGraphics.CGRect rect, System.Runtime.InteropServices.NFloat cornerRadius);
[<Foundation.Export("bezierPathWithRoundedRect:cornerRadius:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromRoundedRect : CoreGraphics.CGRect * System.Runtime.InteropServices.NFloat -> UIKit.UIBezierPath

Parameters

rect
CGRect
cornerRadius
NFloat

Returns

Attributes

Remarks

This can be used from a background thread.

Applies to

FromRoundedRect(CGRect, UIRectCorner, CGSize)

[Foundation.Export("bezierPathWithRoundedRect:byRoundingCorners:cornerRadii:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIBezierPath FromRoundedRect(CoreGraphics.CGRect rect, UIKit.UIRectCorner corners, CoreGraphics.CGSize radii);
[<Foundation.Export("bezierPathWithRoundedRect:byRoundingCorners:cornerRadii:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromRoundedRect : CoreGraphics.CGRect * UIKit.UIRectCorner * CoreGraphics.CGSize -> UIKit.UIBezierPath

Parameters

rect
CGRect
corners
UIRectCorner
radii
CGSize

Returns

Attributes

Applies to