
Overloaded. Prints a Text Control document or a part of a document. The first implementation opens the standard print dialog to get the printer settings for printing the document. The second implemention uses the settings of the specified PrintDocument. The third implementaition prints a single page. This method can be called from the PrintPage event handler.
[C#]
public void Print(string docName);
public void Print(PrintDocument printDocument);
public void Print(int page, PrintPageEventArgs ppe);
[Visual Basic]
Public Sub Print(ByVal docName As String)
Public Sub Print(ByVal printDocument As PrintDocument)
Public Sub Print(ByVal page As Integer, ByVal ppe As PrintPageEventArgs)
| Member | Description | ||||||||||||||||||||||||||||||||||
| docName | Specifies the document's name. | ||||||||||||||||||||||||||||||||||
| printDocument | Specifies an instance of the PrintDocument class. Text Control uses the following settings of this object:
| ||||||||||||||||||||||||||||||||||
| page | Specifies a page number to print. | ||||||||||||||||||||||||||||||||||
| ppe | Specifies the event arguments of the print document's PrintPage event. |