[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IBarcode

IBarcode Interface

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.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface IBarcode
Public Interface IBarcode
Examples
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;

Properties

Name Description
BackgroundColor

Returns the barcode background color.

This property returns the color used for the barcode background. The default value is "rgb(255, 255, 255)".

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 "rgb(0,0,0)".

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 0.

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.