語言

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

A Graphics 代表繪圖表面。

傳回

true若當應用與 Region 相關的變換時,該內部g為空;否則, false。

例外狀況

g 是 null。

備註

圖形上下文 g 的當前轉換用於計算繪圖表面內部區域。

適用於