public bool IsPartOfRectangle(OrderRelatedElement rectangle, Sheet sheet) { return(Value == rectangle.Location.Y - sheet.Location.Y || Value == rectangle.Location.Y + rectangle.Size.Height - sheet.Location.Y); }
public bool IsPartOfRectangle(OrderRelatedElement rectangle, Sheet sheet) { return(Value == rectangle.Location.X - sheet.Location.X || Value == rectangle.Location.X + rectangle.Size.Width - sheet.Location.X); }