public static float GetPXLength(string valueText) { float t_value = 0.0f; SVGLengthType t_type = SVGLengthType.Unknown; SVGLengthConvertor.ExtractType(valueText, ref t_value, ref t_type); return(SVGLengthConvertor.ConvertToPX(t_value, t_type)); }
public SVGLength(string valueText) { float t_value = 0.0f; SVGLengthType t_type = SVGLengthType.Unknown; SVGLengthConvertor.ExtractType(valueText, ref t_value, ref t_type); _unitType = t_type; _valueInSpecifiedUnits = t_value; _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType); }
public void NewValueSpecifiedUnits(float valueInSpecifiedUnits) { _unitType = (SVGLengthType)0; _valueInSpecifiedUnits = valueInSpecifiedUnits; _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType); }
public SVGLength(float valueInSpecifiedUnits) { _unitType = SVGLengthType.Number; _valueInSpecifiedUnits = valueInSpecifiedUnits; _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType); }
public SVGLength(SVGLengthType unitType, float valueInSpecifiedUnits) { _unitType = unitType; _valueInSpecifiedUnits = valueInSpecifiedUnits; _value = SVGLengthConvertor.ConvertToPX(_valueInSpecifiedUnits, _unitType); }