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