public void RenderFontSize(string size, RPLFormat.Directions dir) { RPLReportSize rPLReportSize = new RPLReportSize(size); double num = rPLReportSize.ToPoints(); int param = (int)Math.Round(num * 2.0); this.m_charFormat.AddSprm(19011, param, null); if (dir == RPLFormat.Directions.RTL) { this.m_charFormat.AddSprm(19041, param, null); } }
public static double GetSizeProp(byte rplId, StyleAttributeNames styleAttributeName, float defaultValue, Style styleDef, Dictionary <byte, object> styles) { object obj = null; if (styles != null && styles.TryGetValue(rplId, out obj)) { string text = obj as string; if (text != null) { RPLReportSize rPLReportSize = new RPLReportSize(text); return(rPLReportSize.ToPoints()); } } ReportSizeProperty reportSizeProperty = ((StyleBase)styleDef)[styleAttributeName] as ReportSizeProperty; if (reportSizeProperty != null && !reportSizeProperty.IsExpression && reportSizeProperty.Value != null) { return(reportSizeProperty.Value.ToPoints()); } return((double)defaultValue); }
public static ushort ToTwips(string size) { RPLReportSize rPLReportSize = new RPLReportSize(size); return((ushort)(rPLReportSize.ToPoints() * 20.0)); }
public static double ToPoints(string size) { RPLReportSize rPLReportSize = new RPLReportSize(size); return(rPLReportSize.ToPoints()); }