Exemple #1
0
        public static cave.Length forString(string value)
        {
            var v = new cave.Length();

            v.parse(value);
            return(v);
        }
Exemple #2
0
        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);
        }