/// <summary> /// Gets the bounding clipping region of this graphics. /// </summary> /// <returns>The bounding rectangle for the clipping region</returns> public RectangleF GetClip() { if (_hdc == IntPtr.Zero) { return(_g.ClipBounds); } else { Rectangle lprc; Win32Utils.GetClipBox(_hdc, out lprc); return(lprc); } }