GrapeCity MultiRow Windows Forms Documentation
OnPrint Method


A CellPaintingEventArgs that contains the event data.
Prints the content of the cell for PrintStyle.Compact style.
Syntax
Protected Overridable Sub OnPrint( _
   ByVal e As CellPaintingEventArgs _
) 
Dim instance As Cell
Dim e As CellPaintingEventArgs
 
instance.OnPrint(e)
protected virtual void OnPrint( 
   CellPaintingEventArgs e
)

Parameters

e
A CellPaintingEventArgs that contains the event data.
Remarks
This method can print the cell to the Graphics object, it invokes the PrintCellBackground, PrintCellForeground, and PrintBorder to print each part. You can override this method or the other methods to customize the printing when PrintSettings.PrintStyle is not PrintStyle.Rich. If PrintSettings.PrintStyle is PrintStyle.Rich, you should override the OnPaint to customize painting and 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
OnPaint Method
PrintSettings Property

 

 


Copyright © GrapeCity, inc. All rights reserved.