Edit

Share via


CGRect.FromLTRB(nfloat, nfloat, nfloat, nfloat) Method

Definition

Creates a CGRect structure with the specified edge locations.

C#
public static CoreGraphics.CGRect FromLTRB(nfloat left, nfloat top, nfloat right, nfloat bottom);

Parameters

left
nfloat

The x-coordinate of the upper-left corner of this CGRect structure.

top
nfloat

The y-coordinate of the upper-left corner of this CGRect structure.

right
nfloat

The x-coordinate of the lower-right corner of this CGRect structure.

bottom
nfloat

The y-coordinate of the lower-right corner of this CGRect structure.

Returns

The new CGRect that this method creates.

Remarks

This method creates a CGRect with the specified upper-left and lower-right corners.

Applies to

Product Versions
Xamarin.Mac SDK 14