UPCSupplemental5OptionsBuilder Class
Builds an UPCSupplemental5Options 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 UPCSupplemental5OptionsBuilder :
BarcodeOptionsBuilder<UPCSupplemental5Options, UPCSupplemental5OptionsBuilder>
Related API Members
The following members return UPCSupplemental5OptionsBuilder objects:
Remarks
The following code snippet creates a Universal Product Code (UPC) Supplemental 5-Digit barcode and specifies its settings:

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