/// <include file='doc\Region.uex' path='docs/doc[@for="Region.Complement3"]/*' /> /// <devdoc> /// <para> /// Updates this <see cref='System.Drawing.Region'/> to the portion of the /// specified <see cref='System.Drawing.Region'/> that does not intersect with this <see cref='System.Drawing.Region'/>. /// </para> /// </devdoc> public void Complement(Region region) { if (region == null) { throw new ArgumentNullException("region"); } int status = SafeNativeMethods.GdipCombineRegionRegion(new HandleRef(this, nativeRegion), new HandleRef(region, region.nativeRegion), CombineMode.Complement); if (status != SafeNativeMethods.Ok) { throw SafeNativeMethods.StatusException(status); } }