コード例 #1
0
        public static Color GetStyleBorderColor(Border border)
        {
            ReportColorProperty color = border.Color;
            Color result = Color.Black;

            if (!MappingHelper.GetColorFromReportColorProperty(color, ref result))
            {
                ReportColor color2 = border.Instance.Color;
                if (color2 != null)
                {
                    result = color2.ToColor();
                }
            }
            return(result);
        }
コード例 #2
0
        public static Color GetStyleShadowColor(Style style, StyleInstance styleInstance)
        {
            ReportColorProperty shadowColor = style.ShadowColor;
            Color result = MappingHelper.m_defaultShadowColor;

            if (!MappingHelper.GetColorFromReportColorProperty(shadowColor, ref result))
            {
                ReportColor shadowColor2 = styleInstance.ShadowColor;
                if (shadowColor2 != null)
                {
                    result = shadowColor2.ToColor();
                }
            }
            return(result);
        }
コード例 #3
0
        public static Color GetStyleColor(Style style, StyleInstance styleInstance)
        {
            ReportColorProperty color = style.Color;
            Color result = Color.Black;

            if (!MappingHelper.GetColorFromReportColorProperty(color, ref result))
            {
                ReportColor color2 = styleInstance.Color;
                if (color2 != null)
                {
                    result = color2.ToColor();
                }
            }
            return(result);
        }
コード例 #4
0
        public static Color GetStyleBackGradientEndColor(Style style, StyleInstance styleInstance)
        {
            ReportColorProperty backgroundGradientEndColor = style.BackgroundGradientEndColor;
            Color result = Color.Empty;

            if (!MappingHelper.GetColorFromReportColorProperty(backgroundGradientEndColor, ref result))
            {
                ReportColor backgroundGradientEndColor2 = styleInstance.BackgroundGradientEndColor;
                if (backgroundGradientEndColor2 != null)
                {
                    result = backgroundGradientEndColor2.ToColor();
                }
            }
            return(result);
        }
コード例 #5
0
        private Color GetCustomColor(MapCustomColor mapCustomColor)
        {
            ReportColorProperty color = mapCustomColor.Color;
            Color empty = Color.Empty;

            if (color != null)
            {
                if (MappingHelper.GetColorFromReportColorProperty(color, ref empty))
                {
                    return(empty);
                }
                ReportColor color2 = mapCustomColor.Instance.Color;
                if (color2 != null)
                {
                    return(color2.ToColor());
                }
            }
            return(empty);
        }