Region.IsEmpty(Graphics) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
測試該 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
參數
傳回
true若當應用與 Region 相關的變換時,該內部g為空;否則, false。
例外狀況
g 是 null。
備註
圖形上下文 g 的當前轉換用於計算繪圖表面內部區域。