CGRect.FromLTRB(nfloat, nfloat, nfloat, nfloat) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a CGRect structure with the specified edge locations.
public static CoreGraphics.CGRect FromLTRB(nfloat left, nfloat top, nfloat right, nfloat bottom);
static member FromLTRB : nfloat * nfloat * nfloat * nfloat -> CoreGraphics.CGRect
Parameters
- left
- nfloat
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The x-coordinate of the upper-left corner of this CGRect structure.
- top
- nfloat
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The y-coordinate of the upper-left corner of this CGRect structure.
- right
- nfloat
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The x-coordinate of the lower-right corner of this CGRect structure.
- bottom
- nfloat
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The y-coordinate of the lower-right corner of this CGRect structure.
Returns
<attribution license="cc4" from="Microsoft" modified="false"></attribution>
The new CGRect that this method creates.
Remarks
<attribution license="cc4" from="Microsoft" modified="false"></attribution>
This method creates a CGRect with the specified upper-left and lower-right corners.