public static bool ValidateSizeString(string sizeString, out RVUnit sizeValue) { try { sizeValue = RVUnit.Parse(sizeString, CultureInfo.InvariantCulture); if (sizeValue.Type == RVUnitType.Pixel) { return(false); } return(true); } catch { sizeValue = RVUnit.Empty; return(false); } }
public static void ParseSize(string size, out double sizeInMM) { RVUnit unit = RVUnit.Parse(size, CultureInfo.InvariantCulture); sizeInMM = Converter.ConvertToMM(unit); }
public void ParseSize() { this.m_sizeInMM = RVUnit.Parse(this.m_size, CultureInfo.InvariantCulture).ToMillimeters(); }
internal void ParseSize() { m_sizeInMM = RVUnit.Parse(m_size, CultureInfo.InvariantCulture).ToMillimeters(); }