C# Class PC.PCPrint

Inheritance: System.Drawing.Printing.PrintDocument
Mostra file Open project: ThomasMoreCollege/CinderellaMGS Class Usage Examples

Public Methods

Method Description
PCPrint ( ) : System

Empty constructor

PCPrint ( string str ) : System

Constructor to initialize our printing object and the text it's supposed to be printing

RemoveZeros ( int value ) : int

Function to replace any zeros in the size to a 1 Zero's will mess up the printing area

Protected Methods

Method Description
OnBeginPrint ( System e ) : void

Override the default OnBeginPrint method of the PrintDocument Object

OnPrintPage ( System e ) : void

Override the default OnPrintPage method of the PrintDocument

This provides the print logic for our document

Method Details

OnBeginPrint() protected method

Override the default OnBeginPrint method of the PrintDocument Object
protected OnBeginPrint ( System e ) : void
e System
return void

OnPrintPage() protected method

Override the default OnPrintPage method of the PrintDocument
This provides the print logic for our document
protected OnPrintPage ( System e ) : void
e System
return void

PCPrint() public method

Empty constructor
public PCPrint ( ) : System
return System

PCPrint() public method

Constructor to initialize our printing object and the text it's supposed to be printing
public PCPrint ( string str ) : System
str string Text that will be printed
return System

RemoveZeros() public method

Function to replace any zeros in the size to a 1 Zero's will mess up the printing area
public RemoveZeros ( int value ) : int
value int Value to check
return int