/// <summary> /// Sets the specified style by rows indexes. The row index is interpreted by index in source table (not reporting version of the table -- i.e. heading rows are not counted, only data) /// </summary> /// <param name="style">The style.</param> /// <param name="rowIndex">Index of the row.</param> /// <returns> /// Rule that was created /// </returns> public dataRowIndexDynamicStyle <DataRowInReportTypeEnum> SetStyleForRows(DataRowInReportTypeEnum style, Int32 rowIndex) { var indexC = new dataRowIndexDynamicStyle <DataRowInReportTypeEnum>(style, new Int32[] { rowIndex }); indexC.indexFromSourceTable = true; units.Add(indexC); return(indexC); }
/// <summary> /// Sets the specified style by rows indexes. The row index is interpreted by index in source table (not reporting version of the table -- i.e. heading rows are not counted, only data) /// </summary> /// <param name="style">The style.</param> /// <param name="rowIndexes">The row indexes.</param> /// <returns>Rule that was created</returns> public dataRowIndexDynamicStyle <DataRowInReportTypeEnum> SetStyleForRows(DataRowInReportTypeEnum style, IEnumerable <Int32> rowIndexes) { var indexC = new dataRowIndexDynamicStyle <DataRowInReportTypeEnum>(style, rowIndexes); indexC.indexFromSourceTable = true; units.Add(indexC); return(indexC); }