Esempio n. 1
0
 /// <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;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public ElementSize(ElementSize elementSize)
 {
     _value = elementSize.Value;
     _unit  = elementSize.Unit;
     _fill  = elementSize.Fill;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public ElementSize(float value, ElementSizeUnit unit)
 {
     _value = value;
     _unit  = unit;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public ElementSize(float pixels)
 {
     _value = pixels;
     _unit  = ElementSizeUnit.Pixels;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public ElementSize()
 {
     _value = 0f;
     _unit  = ElementSizeUnit.Pixels;
 }