Пример #1
0
        public void InitShapeControls(WinControlContainerCollection wincontrols, RepeatControlCollection repeatContains)
        {
            this.InnerList.Clear();

            foreach (DevExpress.XtraReports.UI.WinControlContainer m_Container in WebbReport.ExControls)
            {
                ExShapeControl m_Control = m_Container.WinControl as ExShapeControl;

                if (m_Control == null || !m_Control.AutoFit)
                {
                    continue;
                }

                foreach (RectInfo rectInfo in this)
                {
                    if (rectInfo.Contains(m_Control))
                    {
                        continue;
                    }
                }

                if (repeatContains.HasContainShapeControl(m_Control))
                {
                    continue;
                }

                this.Add(new RectInfo(m_Control));
            }
        }
Пример #2
0
        public RectInfo(ExShapeControl control)
        {
            _Rect = control.XtraContainer.Bounds;

            shapeControl = control;

            _LastRect.Init();

            LinePrintInfo.Init();
        }
Пример #3
0
 public bool HasContainShapeControl(ExShapeControl control)
 {
     foreach (RepeatControl R_Control in this)
     {
         if (R_Control.HasContainShapeControl(control))
         {
             return(true);
         }
     }
     return(false);
 }
Пример #4
0
 public bool HasContainShapeControl(ExShapeControl control)
 {
     foreach (RectInfo rectInfo in this.SubShapeContainers)
     {
         if (rectInfo.shapeControl == control)
         {
             return(true);
         }
     }
     return(false);
 }