C# Class PC.PCPrint

Inheritance: System.Drawing.Printing.PrintDocument
Afficher le fichier Open project: ThomasMoreCollege/CinderellaMGS Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Override the default OnBeginPrint method of the PrintDocument Object
protected OnBeginPrint ( System e ) : void
e System
Résultat void

OnPrintPage() protected méthode

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

PCPrint() public méthode

Empty constructor
public PCPrint ( ) : System
Résultat System

PCPrint() public méthode

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
Résultat System

RemoveZeros() public méthode

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
Résultat int