示例#1
0
 private static RectangleF RemoveMargin(RectangleF bounds, Margins margin)
 {
     bounds.Width += margin.Horizontal;
      bounds.X -= margin.Left;
      bounds.Height += margin.Vertical;
      bounds.Y -= margin.Top;
      return bounds;
 }
示例#2
0
 private static RectangleF AddMargin(RectangleF bounds, Margins margin)
 {
     bounds.Width -= margin.Horizontal;
      bounds.X += margin.Left;
      bounds.Height -= margin.Vertical;
      bounds.Y += margin.Top;
      return bounds;
 }