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

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

private pChangeSecLnHeight ( CSReportPaint paintObj, float y, float minBottom, float maxBottom, cReportSectionLine secLn ) : void
paintObj CSReportPaint
y float
minBottom float
maxBottom float
secLn CSReportDll.cReportSectionLine
Результат void
        private void pChangeSecLnHeight(
            CSReportPaint.cReportPaintObject paintObj, 
            float y, 
            float minBottom, 
            float maxBottom, 
            cReportSectionLine secLn) 
        { 
            cReportAspect w_aspect = paintObj.getAspect();

            // if Y is contained between the range allowed everything is ok
            //
            if (y >= minBottom && y <= maxBottom) {
                w_aspect.setTop(y - m_offY);
            } 
            else {
                // if it have been moved upward
                //
                if (y < minBottom) {
                    w_aspect.setTop(minBottom);

                } 
                // if it have been moved downward
                //
                else {
                    w_aspect.setTop(maxBottom);
                }
            }

            // because the top has been setted to the real dimensions
            // of the screen now we need to move it the offset
            // of its section
            //
            w_aspect.setTop(w_aspect.getTop() + w_aspect.getOffset());

            m_paint.alingToGrid(paintObj.getKey());

            // the section line height has been changed
            //
            secLn.getAspect().setHeight(w_aspect.getTop() 
                                        + cGlobals.C_HEIGHT_BAR_SECTION 
                                        - secLn.getAspect().getTop());
        }

Same methods

cEditor::pChangeSecLnHeight ( cReportPaintObject paintObj, float y, float minBottom, float maxBottom, cReportSectionLine secLn ) : void
cEditor