[]
ICodabar, ICode128, ICode39, ICode49, ICode93, IDataMatrix, IEAN13, IEAN8, IGS1128, IPDF417, IQRCodeAll barcode types inherit this interface. It provides the shared barcode information, including the encoded value, barcode color, background color, barcode type, and quiet-zone sizes.
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\",\"rgb(255, 0, 0)\",\"rgb(255, 255, 0)\",\"H\",1,\"auto\",\"auto\",FALSE,0,,\"UTF-8\",1,2,3,4)");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
String color = barcode.getColor();
String backgroundColor = barcode.getBackgroundColor();
BarcodeType codeType = barcode.getCodeType();
getColor()intintintintgetValue()
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\")");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
String value = barcode.getValue();
This property returns the color used to render the barcode symbol. The default value is "rgb(0,0,0)".
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\",\"rgb(255, 0, 0)\")");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
String color = barcode.getColor();
"rgb(0,0,0)".This property returns the color used for the barcode background. The default value is "rgb(255, 255, 255)".
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\",\"rgb(255, 0, 0)\",\"rgb(255, 255, 0)\")");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
String backgroundColor = barcode.getBackgroundColor();
"rgb(255, 255, 255)".Returns the BarcodeType value that identifies the symbology used by this barcode, such as BarcodeType.QRCode or BarcodeType.PDF417.
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\")");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
BarcodeType codeType = barcode.getCodeType();
BarcodeType value that represents the symbology of this barcode.This property returns the margin size to the left of the barcode symbol. If the left quiet zone is not specified, this method returns 0.
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\",\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"L\",2,\"auto\",\"auto\",FALSE,0,,\"UTF-8\",1,2,3,4)");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
int quietZoneLeft = barcode.getQuietZoneLeft();
This property returns the margin size to the right of the barcode symbol.
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\",\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"L\",2,\"auto\",\"auto\",FALSE,0,,\"UTF-8\",1,2,3,4)");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
int quietZoneRight = barcode.getQuietZoneRight();
This property returns the margin size above the barcode symbol.
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\",\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"L\",2,\"auto\",\"auto\",FALSE,0,,\"UTF-8\",1,2,3,4)");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
int quietZoneTop = barcode.getQuietZoneTop();
This property returns the margin size below the barcode symbol.
worksheet.getRange("A1").setFormula("=BC_QRCODE(\"https://www.example.com\",\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"L\",2,\"auto\",\"auto\",FALSE,0,,\"UTF-8\",1,2,3,4)");
IBarcode barcode = (IBarcode) worksheet.getRange("A1").getValue();
int quietZoneBottom = barcode.getQuietZoneBottom();