private double GetStartSize() { MapSizeRule mapSizeRule = (MapSizeRule)base.m_mapRule; ReportSizeProperty startSize = mapSizeRule.StartSize; ReportSize size = startSize.IsExpression ? mapSizeRule.Instance.StartSize : startSize.Value; return(MappingHelper.ToPixels(size, base.m_mapMapper.DpiX)); }
private ReportSizeProperty GetOrCreateMarginProperty(ref ReportSizeProperty property, AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo expression) { if (!base.m_isOldSnapshot && expression != null) { if (property == null) { property = new ReportSizeProperty(expression); } return(property); } return(null); }
public static int GetStyleShadowOffset(Style style, StyleInstance styleInstance, float dpi) { ReportSizeProperty shadowOffset = style.ShadowOffset; if (!shadowOffset.IsExpression) { return(MappingHelper.ToIntPixels(shadowOffset.Value, dpi)); } ReportSize shadowOffset2 = styleInstance.ShadowOffset; if (shadowOffset2 != null) { return(MappingHelper.ToIntPixels(shadowOffset2, dpi)); } return(0); }
public int GetSize(MapPointTemplate mapPointTemplate, bool hasScope) { ReportSizeProperty size = mapPointTemplate.Size; if (size != null) { if (!size.IsExpression) { return(MappingHelper.ToIntPixels(size.Value, base.m_mapMapper.DpiX)); } if (hasScope) { return(MappingHelper.ToIntPixels(mapPointTemplate.Instance.Size, base.m_mapMapper.DpiX)); } return(PointTemplateMapper.GetDefaultSymbolSize(base.m_mapMapper.DpiX)); } return(PointTemplateMapper.GetDefaultSymbolSize(base.m_mapMapper.DpiX)); }
public int GetSize(MapLineTemplate mapLineTemplate, bool hasScope) { ReportSizeProperty width = mapLineTemplate.Width; if (width != null) { if (!width.IsExpression) { return(MappingHelper.ToIntPixels(width.Value, base.m_mapMapper.DpiX)); } if (hasScope) { return(MappingHelper.ToIntPixels(mapLineTemplate.Instance.Width, base.m_mapMapper.DpiX)); } return(LineTemplateMapper.GetDefaultSize(base.m_mapMapper.DpiX)); } return(LineTemplateMapper.GetDefaultSize(base.m_mapMapper.DpiX)); }
public static float GetStyleFontSize(Style style, StyleInstance styleInstance) { ReportSizeProperty fontSize = style.FontSize; if (MappingHelper.IsStylePropertyDefined(fontSize)) { if (!fontSize.IsExpression) { return((float)fontSize.Value.ToPoints()); } if (styleInstance.FontSize != null) { ReportSize fontSize2 = styleInstance.FontSize; if (fontSize2 != null) { return((float)fontSize2.ToPoints()); } } } return(MappingHelper.DefaultFontSize); }
public static int GetStyleBorderWidth(Border border, float dpi) { ReportSizeProperty width = border.Width; int result = MappingHelper.GetDefaultBorderWidth(dpi); if (!width.IsExpression) { if (width.Value != null) { result = MappingHelper.ToIntPixels(width.Value, dpi); } } else { ReportSize width2 = border.Instance.Width; if (width2 != null) { result = MappingHelper.ToIntPixels(width2, dpi); } } return(result); }