Share via


CGRect.FromLTRB(nfloat, nfloat, nfloat, nfloat) 方法

定义

创建一个具有指定边缘位置的 CGRect 结构。

public static CoreGraphics.CGRect FromLTRB (nfloat left, nfloat top, nfloat right, nfloat bottom);
static member FromLTRB : nfloat * nfloat * nfloat * nfloat -> CoreGraphics.CGRect

参数

left
nfloat

CGRect 结构的左上角的 x 坐标。

top
nfloat

CGRect 结构的左上角的 y 坐标。

right
nfloat

CGRect 结构的右下角的 x 坐标。

bottom
nfloat

CGRect 结构的右下角的 y 坐标。

返回

此方法创建的新 CGRect

注解

此方法创建 CGRect 具有指定左上角和右下角的 。

适用于