Exemplo n.º 1
0
 public Offset(OffsetType offsetType, OffsetValueType offsetValueType, float left, float top, float right, float bottom)
 {
     OffsetType      = offsetType;
     OffsetValueType = offsetValueType;
     Left            = left;
     Top             = top;
     Right           = right;
     Bottom          = bottom;
 }
Exemplo n.º 2
0
 public static Offset Zero(OffsetType offsetType = OffsetType.Padding, OffsetValueType offsetValueType = OffsetValueType.Ratio)
 {
     return(new Offset(offsetType, offsetValueType, 0, 0, 0, 0));
 }
Exemplo n.º 3
0
 public static Offset CreateMargin(OffsetValueType offsetValueType, float left, float top, float right, float bottom)
 {
     return(new Offset(OffsetType.Margin, offsetValueType, left, top, right, bottom));
 }
Exemplo n.º 4
0
 public static Offset CreatePadding(OffsetValueType offsetValueType, float left, float top, float right, float bottom)
 {
     return(new Offset(OffsetType.Padding, offsetValueType, left, top, right, bottom));
 }
Exemplo n.º 5
0
 public OffsetValue( float value, OffsetValueType valueType )
 {
     this.value = value;
     this.valueType = valueType;
 }
Exemplo n.º 6
0
 public OffsetValue(float value, OffsetValueType valueType)
 {
     this.value     = value;
     this.valueType = valueType;
 }