public Dimensions(Rectangle content, EdgeSizes margin, EdgeSizes border, EdgeSizes padding) { Content = content; Margin = margin; Border = border; Padding = padding; }
public Rectangle ExpandedBy(EdgeSizes edges) { return(new Rectangle( X - edges.Left, Y - edges.Top, Width + edges.Left + edges.Right, Height + edges.Top + edges.Bottom )); }
public Rect ExpandedBy(EdgeSizes edge) { return(new Rect() { X = X - edge.Left, Y = Y - edge.Top, Width = Width + edge.Left + edge.Right, Height = Height + edge.Top + edge.Bottom }); }