Region.IsEmpty(Graphics) 方法

定义

测试此 Region 在指定绘图图面上是否有空的内部。

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
Graphics

一个 Graphics,表示绘图图面。

返回

Boolean

如果在应用了与 g 关联的变换后,此 Region 的内部为空,将为 true;否则为 false

例外

gnull

注解

图形上下文 g 的当前转换用于计算绘图图面上的区域内部。

适用于