/// <summary> /// Creates a <see cref="Margins"/> with the current properties. /// </summary> public static Margins ToMargins(this PageMarginsData value) { // Validate. if (value is null) { throw new ArgumentNullException(nameof(value)); } // Return margins. return(new Margins(value.Left, value.Right, value.Top, value.Bottom)); }
/// <summary> /// Initializes an empty instance. /// </summary> public PageSettingsData() { Color = true; Margins = new PageMarginsData(); }