// Token: 0x06000411 RID: 1041 RVA: 0x0000BA38 File Offset: 0x00009C38 internal static FigureLength FromString(string s, CultureInfo cultureInfo) { double value; FigureUnitType type; XamlFigureLengthSerializer.FromString(s, cultureInfo, out value, out type); return(new FigureLength(value, type)); }
/// <summary> /// Parses a FigureLength from a string given the CultureInfo. /// </summary> /// <param name="s">String to parse from.</param> /// <param name="cultureInfo">Culture Info.</param> /// <returns>Newly created FigureLength instance.</returns> /// <remarks> /// Formats: /// "[value][unit]" /// [value] is a double /// [unit] is a string in FigureLength._unitTypes connected to a FigureUnitType /// "[value]" /// As above, but the FigureUnitType is assumed to be FigureUnitType.Pixel /// "[unit]" /// As above, but the value is assumed to be 1.0 /// This is only acceptable for a subset of FigureUnitType: Auto /// </remarks> static internal FigureLength FromString(string s, CultureInfo cultureInfo) { double value; FigureUnitType unit; XamlFigureLengthSerializer.FromString(s, cultureInfo, out value, out unit); return(new FigureLength(value, unit)); }