コード例 #1
0
        public void SetCellValueAnsStyle(IWebbTable webbTable, int rowStart, ref int Col)
        {
            IWebbTableCell cell = webbTable.GetCell(rowStart, Col);

            if (this.ShowTitle)
            {
                cell.CellStyle.Sides = DevExpress.XtraPrinting.BorderSide.None;

                cell.CellStyle.ForeColor = this._TitleTextColor;

                cell.CellStyle.BackgroundColor = this._TitleBackColor;

                cell.CellStyle.HorzAlignment = this._TitleAlignment;

                cell.CellStyle.VertAlignment = this._VerticalAlignment;

                cell.CellStyle.Font = this._TitleFont;

                cell.Text = this.Title;

                Col++;

                cell = webbTable.GetCell(rowStart, Col);
            }

            if (this.ShowUnderLine)
            {
                cell.CellStyle.Sides = DevExpress.XtraPrinting.BorderSide.Bottom;

                cell.CellStyle.BorderStyle = DevExpress.XtraPrinting.BrickBorderStyle.Inset;
            }
            else
            {
                cell.CellStyle.Sides = DevExpress.XtraPrinting.BorderSide.None;
            }

            cell.CellStyle.ForeColor = this._MaskedTextColor;

            cell.CellStyle.BackgroundColor = this._MaskedBackColor;

            cell.CellStyle.HorzAlignment = this._MaskedAlignment;

            cell.CellStyle.VertAlignment = this._VerticalAlignment;

            cell.CellStyle.Font = this._MaskedFont;

            cell.Text = this._MaskedText;

            Col++;

            foreach (MaskInfo brotherInfo in this.BrotherMaskInfos)
            {
                brotherInfo.SetCellValueAnsStyle(webbTable, rowStart, ref Col);
            }
        }
コード例 #2
0
        public void SetCellValueAnsStyle(IWebbTable webbTable)
        {
            for (int i = 0; i < this.InnerList.Count; i++)
            {
                MaskInfo maskTextInfo = this[i];

                int nCol = 0;

                maskTextInfo.SetCellValueAnsStyle(webbTable, i, ref nCol);
            }
        }