/// <summary>
        /// 设置适配器
        /// </summary>
        /// <param name="adapter"></param>
        public void setAdapter(ReportViewAdapter adapter)
        {
            this.adapter = adapter;
            int count = adapter.getCount();

            adapter.next();
            if (isVerticalShowData)
            {
                //设置高度
                int height = adapter.getPositionRect().bottom - adapter.getPositionRect().top + padding;
                //this.Height = height * count + padding;

                Label lable = new Label();
                lable.Location = new Point(0, height * count + padding);
                lable.Text     = "";
                lable.Width    = 0;
                this.Controls.Add(lable);
            }
            else
            {
                //设置宽度
                int width = adapter.getPositionRect().right - adapter.getPositionRect().left + padding;
                this.Width = width * count + padding;
            }

            adapter.setIndex(-1);
        }
Exemple #2
0
        /// <summary>
        /// 设置适配器
        /// </summary>
        /// <param name="adapter"></param>
        internal void setAdapter(ReportViewAdapter adapter)
        {
            this.adapter = adapter;
            //设置高度
            int count = adapter.getCount();

            adapter.next();
            int height = adapter.getPositionRect().bottom - adapter.getPositionRect().top + adapter.getPadding();

            this.Height = height * count + adapter.getPadding();
            adapter.setIndex(-1);
        }
Exemple #3
0
        /// <summary>
        /// 设置适配器
        /// </summary>
        public void setAdapter(ReportViewAdapter adapter)
        {
            this.adapter = adapter;
            int count = adapter.getCount();

            adapter.next();
            if (adapter.IsVerticalShowData)
            {
                if (adapter.PosRectData != null)
                {
                    //设置高度
                    int height = adapter.PosRectData.bottom - adapter.PosRectData.top + adapter.PosRectData.PaddingIn;
                    MaxHeight = height * count;
                }
            }
            adapter.setIndex(-1);
        }