public static cave.Length forString(string value) { var v = new cave.Length(); v.parse(value); return(v); }
public static cave.Length forStringAsPoints(string value, int ppi) { var v = new cave.Length(); v.parse(value); v.setValue((double)v.toPoints(ppi)); v.setUnit(cave.Length.UNIT_POINT); return(v); }