using ReportGeneration.Interface;
namespace ReportGeneration.Abstract.Model;
public struct Bounds : IBounds
{
///
public string Unit => "px";
///
public int? MinWidth { get; set; } = null;
///
public int? MinHeight { get; set; } = null;
///
public int? MaxWidth { get; set; } = null;
///
public int? MaxHeight { get; set; } = null;
///
public int? Width { get; set; } = null;
///
public int? Height { get; set; } = null;
public Bounds() { }
public Bounds(int? size)
{
Width = size;
Height = size;
}
public Bounds(int? min, int? max, int? size = null) : this(size)
{
MinWidth = min;
MinHeight = min;
MaxWidth = max;
MaxHeight = max;
}
}