示例#1
0
        protected override void PrintRowCell(int rowHandle, GridCellInfo cell, Rectangle r)
        {
            View.OptionsPrint.PrintPreview = true;
            string         displayText    = (View as MyGridView).GoAndGetRowCellDisplayTextCore(rowHandle, cell.Column, cell.ViewInfo, cell.CellValue, false);
            MyGridViewInfo myGridViewInfo = new MyGridViewInfo(View as MyGridView);

            myGridViewInfo.GoAndUpdateCellAppearanceCore(cell);
            if (cell.ViewInfo.AllowHtmlString)
            {
                displayText = StringPainter.Default.RemoveFormat(displayText, true);
            }
            HorzAlignment       horzAlignment = (View as MyGridView).GetHorzAlignment(rowHandle, cell.Column, cell.Appearance.HAlignment);
            PrintCellHelperInfo info          = new PrintCellHelperInfo(new Point(cell.Column == null ? -1 : cell.Column.AbsoluteIndex, rowHandle),
                                                                        LineColor,
                                                                        PS,
                                                                        cell.CellValue,
                                                                        cell.Appearance,
                                                                        displayText,
                                                                        r,
                                                                        Graph,
                                                                        horzAlignment,
                                                                        View.OptionsPrint.PrintHorzLines,
                                                                        View.OptionsPrint.PrintVertLines,
                                                                        cell.ColumnInfo.Column.DisplayFormat.FormatString,
                                                                        CalcBrickBordersEX(),
                                                                        PaddingInfo.Empty
                                                                        );

            IVisualBrick brick = cell.Editor.GetBrick(info);

            MyGridView view = this.View as MyGridView;

            view.RaiseSamplePrintEvent(this, new SamplePrintEventArgs(cell.RowHandle, cell.Column, brick, false));

            if (AllowProcessMergedInfo)
            {
                brick.Rect = r;
                UpdateMergedStatus(cell, (VisualBrick)brick);
            }
            Graph.DrawBrick(brick, r);
        }
示例#2
0
 public MyGridViewInfo(MyGridView gridView) : base(gridView)
 {
 }