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,表示繪圖介面。

傳回

如果套用與 g 關聯的轉換時,這個 Region 的內部是空的,則為 true,否則為 false

例外狀況

gnull

備註

圖形內容的 g 目前轉換是用來計算繪圖介面上的區域內部。

適用於