CSReportPaint.cReportPrint.pGetPaintObjByCtrlName C# (CSharp) 메소드

pGetPaintObjByCtrlName() 개인적인 메소드

private pGetPaintObjByCtrlName ( String ctrlName, CSReportDll fields, int offset ) : cReportPaintObject
ctrlName String
fields CSReportDll
offset int
리턴 cReportPaintObject
        private cReportPaintObject pGetPaintObjByCtrlName(
            String ctrlName,
            CSReportDll.cReportPageFields fields,
            int offset)
        {
            CSReportDll.cReportPageField fld = getFieldByCtrlName(ctrlName, fields);

            for (int _i = 0; _i < m_paint.getPaintObjects().count(); _i++)
            {
                cReportPaintObject rtn = m_paint.getPaintObjects().item(_i);
                if (fields.item(rtn.getIndexField() - offset) == fld)
                {
                    return rtn;
                }
            }
            return null;
        }