public DimensionBuilder SetMargins(Margins margins) { var selected = margins.ToSelectedMargins(); this.Request.Dimensions.MarginLeft = selected.Left; this.Request.Dimensions.MarginRight = selected.Right; this.Request.Dimensions.MarginTop = selected.Top; this.Request.Dimensions.MarginBottom = selected.Bottom; return(this); }