[]
Represents the common contract for all barcode types.
All 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.
public interface IBarcode
Public Interface IBarcode
worksheet.Range["A1"].Formula = "=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.Range["A1"].Value;
string color = barcode.Color;
string backgroundColor = barcode.BackgroundColor;
BarcodeType codeType = barcode.CodeType;
| Name | Description |
|---|---|
| BackgroundColor | Returns the barcode background color.
This property returns the color used for the barcode background. The default
value is |
| CodeType | Returns the barcode type. |
| Color | Returns the barcode color.
This property returns the color used to render the barcode symbol. The default
value is |
| QuietZoneBottom | Returns the size of the bottom quiet zone. This property returns the margin size below the barcode symbol. |
| QuietZoneLeft | Returns the size of the left quiet zone.
This property returns the margin size to the left of the barcode symbol.
If the left quiet zone is not specified, this property returns |
| QuietZoneRight | Returns the size of the right quiet zone. This property returns the margin size to the right of the barcode symbol. |
| QuietZoneTop | Returns the size of the top quiet zone. The quiet zone is the blank margin above the barcode symbol. |
| Value | Returns the string encoded on the barcode symbol. |