GrapeCity MultiRow Windows Forms Documentation
Print(Graphics,RectangleF,Int32,Int32,Boolean,Boolean,PrintStyle,Boolean) 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.
A bool value that indicates whether to stretch the GcMultiRow control according to the boundary.
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, _
   ByVal stretch As Boolean _
) 
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
Dim stretch As Boolean
 
instance.Print(graphics, bounds, fromRow, toRow, printHeader, printFooter, printStyle, stretch)
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void Print( 
   Graphics graphics,
   RectangleF bounds,
   int fromRow,
   int toRow,
   bool printHeader,
   bool printFooter,
   PrintStyle printStyle,
   bool stretch
)

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.
stretch
A bool value that indicates whether to stretch the GcMultiRow control according to the boundary.
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.