CSReportEditor.cEditor.pAddPaintSetcionForSecLn C# (CSharp) Метод

pAddPaintSetcionForSecLn() приватный Метод

private pAddPaintSetcionForSecLn ( cReportSection sec, csRptSectionType typeSecLn ) : void
sec CSReportDll.cReportSection
typeSecLn csRptSectionType
Результат void
        private void pAddPaintSetcionForSecLn(
            cReportSection sec,
            csRptSectionType typeSecLn)
        {
            cReportPaintObject paintSec = null;

            if (sec.getSectionLines().count() > 1) {

                for (int i = 0; i < sec.getSectionLines().count() - 1; i++) {
                    cReportSectionLine secLine = sec.getSectionLines().item(i);
                    secLine.setKeyPaint(
                        paintSection(
                            secLine.getAspect(),
                            secLine.getKey(),
                            sec.getTypeSection(),
                            C_SECTIONLINE + i.ToString(),
                            true));

                    // we set the height of every section line
                    //
                    paintSec = m_paint.getPaintSections().item(secLine.getKeyPaint());
                    paintSec.setHeightSecLine(secLine.getAspect().getHeight());
                    paintSec.setRptType(typeSecLn);
                    paintSec.setRptKeySec(sec.getKey());
                }

                // if there is more than one section we use
                // textLine to show the name of the last line
                //
               cReportPaintObject po = m_paint.getPaintSections().item(sec.getKeyPaint());
                po.setTextLine(C_SECTIONLINE + (sec.getSectionLines().count() - 1).ToString());
            }

            // we set the height of the last section line
            //
            paintSec = m_paint.getPaintSections().item(sec.getKeyPaint());

            cReportSectionLines secLines = sec.getSectionLines();
            paintSec.setHeightSecLine(secLines.item(secLines.count() - 1).getAspect().getHeight());
        }

Same methods

cEditor::pAddPaintSetcionForSecLn ( cReportSection sec, csRptTypeSection typeSecLn ) : void
cEditor