コード例 #1
0
 public static Unit FromPixels(double pixels, UnitType type)
 {
     return(new Unit(Unit.ConvertToUnits(pixels, type), type));
 }
コード例 #2
0
 public Unit(double value, UnitType type)
 {
     _type  = type;
     _value = Unit.ConvertToUnits((double)value, type);
 }
コード例 #3
0
 static Unit()
 {
     Unit.Empty   = new Unit();
     _defaultType = UnitType.Inch;
 }