UPCSupplemental2OptionsBuilder Class
Builds an UPCSupplemental2Options object. Chain builder methods to configure barcode settings, then call the Build method to create the options object.
Namespace: DevExpress.Docs.Barcode
Assembly: DevExpress.Docs.Core.v26.1.dll
Declaration
public class UPCSupplemental2OptionsBuilder :
BarcodeOptionsBuilder<UPCSupplemental2Options, UPCSupplemental2OptionsBuilder>
Related API Members
The following members return UPCSupplemental2OptionsBuilder objects:
Remarks
The following code snippet creates a Universal Product Code (UPC) Supplemental 2-Digit barcode and specifies its settings:

using DevExpress.Docs.Barcode;
using DevExpress.Drawing;
using System.Drawing;
var upcs2code = UPCSupplemental2OptionsBuilder.Create()
.WithBackColor(Color.LightGray)
.WithShowText(false)
.WithPadding(5)
.WithBorderWidth(1)
.WithBorderColor(Color.Blue)
.Build();
var filePath = Path.GetFullPath("upcs2_code.png");
using var stream = new FileStream(filePath, FileMode.Create);
using var generator = new BarcodeGenerator(upcs2code);
generator.Export("4210000526", stream, DXImageFormat.Png);
Inheritance
Object
BarcodeOptionsBuilder<UPCSupplemental2Options, UPCSupplemental2OptionsBuilder>
UPCSupplemental2OptionsBuilder
See Also