CSReportDll.cReportSections.item C# (CSharp) Метод

item() публичный Метод

public item ( String key ) : cReportSection
key String
Результат cReportSection
        public cReportSection item(String key)
        {
            try
            {
                if (m_coll.ContainsKey(key))
                {
                    return (cReportSection)m_coll[key];
                }
                else
                {
                    return null;
                }                
            }
            catch
            {
                return null;
            }
        }

Same methods

cReportSections::item ( int index ) : cReportSection

Usage Example

Пример #1
0
        private void pSetIndexColInGroupFormulasAux(cReportSections sections, List<object[]> recordsets)
        {
            cReportSection sec = null;
            cReportSectionLine secLn = null;
            cReportControl ctrl = null;

            for (int _i = 0; _i < sections.count(); _i++)
            {
                sec = sections.item(_i);
                if (sec.getHasFormulaHide())
                {
                    pSetIndexColInGroupFormula(sec.getFormulaHide(), recordsets);
                }
                for (int _j = 0; _j < sec.getSectionLines().count(); _j++)
                {
                    secLn = sec.getSectionLines().item(_j);
                    if (secLn.getHasFormulaHide())
                    {
                        pSetIndexColInGroupFormula(secLn.getFormulaHide(), recordsets);
                    }
                    for (int _k = 0; _k < secLn.getControls().count(); _k++)
                    {
                        ctrl = secLn.getControls().item(_k);
                        if (ctrl.getHasFormulaHide())
                        {
                            pSetIndexColInGroupFormula(ctrl.getFormulaHide(), recordsets);
                        }
                        if (ctrl.getHasFormulaValue())
                        {
                            pSetIndexColInGroupFormula(ctrl.getFormulaValue(), recordsets);
                        }
                    }
                }
            }
        }
All Usage Examples Of CSReportDll.cReportSections::item