/// <summary> /// Initializes a new instance of the class. /// </summary> public ElementSize(ElementSize elementSize) { if (elementSize == null) { _value = 0.0f; _unit = ElementSizeUnit.Pixels; } else { _value = elementSize.Value; _unit = elementSize.Unit; } }
/// <summary> /// Initializes a new instance of the class. /// </summary> public ElementSize(ElementSize elementSize) { _value = elementSize.Value; _unit = elementSize.Unit; _fill = elementSize.Fill; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public ElementSize(float value, ElementSizeUnit unit) { _value = value; _unit = unit; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public ElementSize(float pixels) { _value = pixels; _unit = ElementSizeUnit.Pixels; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public ElementSize() { _value = 0f; _unit = ElementSizeUnit.Pixels; }