internal void ApplyStyle(string style) { if (!String.IsNullOrEmpty(style) && Report != null) { StyleCollection styles = Report.Styles; int index = styles.IndexOf(style); if (index != -1) ApplyStyle(styles[index]); } }
internal void ApplyEvenStyle() { if (!String.IsNullOrEmpty(EvenStyle) && Report != null) { StyleCollection styles = Report.Styles; int index = styles.IndexOf(EvenStyle); if (index != -1) { Style style = styles[index]; if (EvenStylePriority == StylePriority.UseFill) Fill = style.Fill.Clone(); else ApplyStyle(style); } } }