TX Text Control .NET for Windows Forms

PrintPaint Method

Method|Introduced in 29.0
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.WinForms.SDK as TXBarcode.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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);
ParameterDescription
graphics

Specifies the object of type System.Drawing.Graphics the barcode is printed to.

position

Specifies the position to draw on the specified System.Drawing.Graphics object.

PrintPaint(Rectangle)

public string PrintPaint(Rectangle rectangle);

Examples

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}");