PrintPaint Method
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. WinForms. SDK TXBarcode.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Draws the barcode on the specified System.Drawing.Graphics object.
Syntax
PrintPaint(Graphics, Rectangle)
Draws the barcode on the specified System.Drawing.Graphics object.
public void PrintPaint(Graphics graphics, Rectangle position);Public Sub PrintPaint(graphics As Graphics, position As Rectangle)| Parameter | Description |
|---|---|
| graphics | Specifies the object of type |
| position | Specifies the position to draw on the specified |
PrintPaint(Rectangle)
public string PrintPaint(Rectangle rectangle);Public Function PrintPaint(rectangle As Rectangle) As StringExamples
The following example uses Print Paint in a focused TXBarcode Control workflow.
var result = tXBarcodeControl.PrintPaint(new System.Drawing.Rectangle(20, 20, 600, 400));
Console.WriteLine($"Print Paint result: {result}");Dim result = tXBarcodeControl.PrintPaint(New System.Drawing.Rectangle(20, 20, 600, 400))
Console.WriteLine($"Print Paint result: {result}")