GrapeCity MultiRow Windows Forms Documentation
OnPaint Method (Cell)


A CellPaintingEventArgs that contains the event data.
Paints the content of the cell for screen display and PrintStyle.Rich style print.
Syntax
Protected Overridable Sub OnPaint( _
   ByVal e As CellPaintingEventArgs _
) 
Dim instance As Cell
Dim e As CellPaintingEventArgs
 
instance.OnPaint(e)
protected virtual void OnPaint( 
   CellPaintingEventArgs e
)

Parameters

e
A CellPaintingEventArgs that contains the event data.
Remarks
This method can paint and print the cell to the Graphics object. It invokes the PaintCellBackground, PaintCellForeground, PaintBorder, PaintCellWaveLine, and PaintCellErrorIcon to paint or print each part. You can override this method or the other methods to customize the painting or printing when PrintSettings.PrintStyle is PrintStyle.Rich. If PrintSettings.PrintStyle is not PrintStyle.Rich, you should override the OnPrint to customize printing.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cell Class
Cell Members
OnPrint Method

 

 


Copyright © GrapeCity, inc. All rights reserved.