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 个。

返回

如果应用与关联的转换时,此内部为空,则为 。

例外

gnull

注解

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

适用于