public static ExcelNamedStyleXml MakeStyle(this ExcelStyles styles, dataTableStyleSet styleSet, DataRowInReportTypeEnum data)
        {
            var output = styles.CreateNamedStyle(data.ToString());

            output.Style.SetStyle(styleSet.rowStyles[data]);
            return(output);
        }
Beispiel #2
0
 public static dataTableStyleSet StyleSet(this DataTable dc, dataTableStyleSet default_table_styleset)
 {
     if (!dc.ExtendedProperties.ContainsKey(templateFieldDataTable.table_styleset))
     {
         dc.ExtendedProperties.add(templateFieldDataTable.table_styleset, default_table_styleset);
     }
     return(dc.ExtendedProperties[templateFieldDataTable.table_styleset] as dataTableStyleSet);
 }
Beispiel #3
0
 public static DataTable SetStyleSet(this DataTable dc, dataTableStyleSet table_styleset)
 {
     dc.ExtendedProperties.add(templateFieldDataTable.table_styleset, table_styleset);
     return(dc);
 }