GrapeCity MultiRow Windows Forms Documentation
Print(Graphics,RectangleF,Int32,Int32,Boolean,Boolean,PrintStyle) Method


The System.Drawing.Graphics object to print.
The print boundary.
The index that indicates the row to start printing from.
The index that indicates the row to print to.
A bool value that indicates whether to print the ColumnHeaderSection.
A bool value that indicates whether to print the ColumnFooterSection.
The PrintStyle value.
Prints the GcMultiRow control to a special System.Drawing.Graphics object.
Syntax
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Overloads Sub Print( _
   ByVal graphics As Graphics, _
   ByVal bounds As RectangleF, _
   ByVal fromRow As Integer, _
   ByVal toRow As Integer, _
   ByVal printHeader As Boolean, _
   ByVal printFooter As Boolean, _
   ByVal printStyle As PrintStyle _
) 
Dim instance As GcMultiRow
Dim graphics As Graphics
Dim bounds As RectangleF
Dim fromRow As Integer
Dim toRow As Integer
Dim printHeader As Boolean
Dim printFooter As Boolean
Dim printStyle As PrintStyle
 
instance.Print(graphics, bounds, fromRow, toRow, printHeader, printFooter, printStyle)
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void Print( 
   Graphics graphics,
   RectangleF bounds,
   int fromRow,
   int toRow,
   bool printHeader,
   bool printFooter,
   PrintStyle printStyle
)

Parameters

graphics
The System.Drawing.Graphics object to print.
bounds
The print boundary.
fromRow
The index that indicates the row to start printing from.
toRow
The index that indicates the row to print to.
printHeader
A bool value that indicates whether to print the ColumnHeaderSection.
printFooter
A bool value that indicates whether to print the ColumnFooterSection.
printStyle
The PrintStyle value.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe graphics object is a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeException

The fromRow parameter is less than 0 or greater than the number of Rows minus 1.

-or-

The toRow parameter is less than 0 or greater than the number of Rows minus 1.

System.ComponentModel.InvalidEnumArgumentExceptionThe printStyle has an invalid value for the PrintStyle enumeration.
Remarks
You can change the PrintSettings property value to adjust the print effect.
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

GcMultiRow Class
GcMultiRow Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.