private void addTotalRun(CXLRColDef pCol){ CXLRTotal vNewTTL = new CXLRTotalRun(this, pCol); FTotals.Add(vNewTTL); }
//public //constructor public CXLRTotal(CXLRTotals pOwner, CXLRColDef pCol){ FOwner = pOwner; FCol = pCol; }
public CXLRColDef[] GetDetailsColDefs(){ ArrayList vRslt = new ArrayList(); foreach(var col in this.FCols){ if(col.TTLType == XLRTTLType.xttNototal) vRslt.Add(col); } if(vRslt.Count > 0){ CXLRColDef[] vArr = new CXLRColDef[vRslt.Count]; vRslt.CopyTo(vArr); return vArr; }else return new CXLRColDef[0]; }
public CXLRColDef Add(XLRTTLType pTTLType, XLRTTLCalcType pTTLCalcType, String pFieldName, bool pIsGroupField, bool pGroupFieldHasFooter, bool pIsSysField, String pFormula) { CXLRColDef vReslt = new CXLRColDef(pTTLType, pTTLCalcType, pFieldName, this.FCols.Count + 1, pIsGroupField, pGroupFieldHasFooter, pIsSysField, pFormula); this.FCols.Add(vReslt); return vReslt; }
//private //public //constructor public CXLRTotalRun(CXLRTotals pOwner, CXLRColDef pCol):base(pOwner, pCol){ }
public Excel.Range[] GetGroupKeysRng(Excel.Worksheet pWS, CXLRColDef pGroupFieldDef){ return ExcelSrv.ParsColRowRanges(pWS, pGroupFieldDef.ColIndex, pGroupFieldDef.ColIndex, this.GetKeysRangesList(pGroupFieldDef.FieldName)); }