/// <summary> /// Verifies if this zone contains a given RectangleZone. /// </summary> public virtual bool Contains( RectangleZone region ) { return Contains( region.X, region.Y ) && Contains( region.Width, region.Height ); }
public RectangleZone Clone( ) { RectangleZone rect = new RectangleZone( Color.White ); rect.SetProperties( this.X, this.Y, this.Width, this.Height ); rect.BorderColor = this.BorderColor; rect.FillColor = this.FillColor; rect.DrawsFillColor = this.DrawsFillColor; return rect; }
public virtual bool Intersects( RectangleZone zone ) { return Contains( zone.X, zone.Y ) || Contains( zone.Width, zone.Height ); }