Applies To: Barcode | BarcodeControl | BarcodeImage
Draws a barcode to a System.Drawing.Graphics object. This is the simplest of the three versions of the Draw method.
[Visual Basic] Public Sub Draw( _ ByVal g As Graphics, _ ByVal rect As RectangleF, _ ByVal extraFlags As BarcodeDrawFlags, _ ByVal textOnlyString As String _ ) [C#] public void Draw( Graphics g, RectangleF rect, BarcodeDrawFlags extraFlags, string textOnlyString );
| Member Name | Description |
|---|---|
| NoDrawBackground | Do not draw the background. |
| CalculateSizeOnly | Do not actually draw the barcode; calculate the barcode position and size only. |
| Clip | Clip the barcode to the target rectangle. |
| PaintWholeRect | Paint the background of the entire target rectangle even if the actual barcode will only take up part of it. |
| DrawTextOnly | Draw only the barcode data, not the barcode. |
| DrawBackgroundOnly | Draw only the background, not the barcode. |
| WidthPerModule | Indicates that the width parameter specifies the width of the thinnest barcode bar rather than that of the barcode. |
| NoRestoreGraphicsState | Do not restore the state of the Graphics object after drawing. |