Region.IsEmpty(Graphics) 方法
定义
public:
bool IsEmpty(System::Drawing::Graphics ^ g);
public bool IsEmpty (System.Drawing.Graphics g);
member this.IsEmpty : System.Drawing.Graphics -> bool
Public Function IsEmpty (g As Graphics) As Boolean
参数
返回
如果在应用了与 g 关联的变换后,此 Region 的内部为空,将为 true;否则为 false。true if the interior of this Region is empty when the transformation associated with g is applied; otherwise, false.
例外
g 为 null。g is null.
注解
图形上下文的当前转换 g 用于计算绘制图面上的内部区域。The current transformation of the graphics context g is used to compute the region interior on the drawing surface.