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


The System.Drawing.Graphics object to print to.
The print location.
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 location As PointF, _
   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 location As PointF
Dim fromRow As Integer
Dim toRow As Integer
Dim printHeader As Boolean
Dim printFooter As Boolean
Dim printStyle As PrintStyle
 
instance.Print(graphics, location, fromRow, toRow, printHeader, printFooter, printStyle)
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void Print( 
   Graphics graphics,
   PointF location,
   int fromRow,
   int toRow,
   bool printHeader,
   bool printFooter,
   PrintStyle printStyle
)

Parameters

graphics
The System.Drawing.Graphics object to print to.
location
The print location.
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 contains 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.