示例#1
0
 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]);
     }
 }
示例#2
0
 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);
         }
     }
 }