[]
IBarcode, IFontOption, ILabelOptionCodabar 是一种使用字符 A、B、C、D、+、-、:、.、/、$ 和数字的条形码。除 IBarcode、IFontOption 和 ILabelOption 定义的通用条形码、字体和标签选项外,此接口还提供对 Codabar 特定条形码设置的访问。
worksheet.getRange("A1").setValue("B2345678B");
worksheet.getRange("B1").setFormula("=BC_CODABAR(A1)");
ICodabar codabar = (ICodabar) worksheet.getRange("B1").getValue();
int nwRatio = codabar.getNwRatio();
boolean checkDigit = codabar.getCheckDigit();
booleanintgetBackgroundColor, getCodeType, getColor, getQuietZoneBottom, getQuietZoneLeft, getQuietZoneRight, getQuietZoneTop, getValuegetFontFamily, getFontSize, getFontStyle, getFontTextAlign, getFontTextDecoration, getFontWeightgetLabelPosition, getShowLabel指定符号是否需要校验位。默认值为 false。
worksheet.getRange("A1").setValue("B2345678B");
worksheet.getRange("B1").setFormula("=BC_CODABAR(A1)");
ICodabar codabar = (ICodabar) worksheet.getRange("B1").getValue();
boolean checkDigit = codabar.getCheckDigit();
true;否则为 false。此值表示 Codabar 条形码中宽条与窄条之间的比例。支持的值为 2 和 3。默认值为 3。
worksheet.getRange("A1").setValue("B2345678B");
worksheet.getRange("B1").setFormula("=BC_CODABAR(A1)");
ICodabar codabar = (ICodabar) worksheet.getRange("B1").getValue();
int nwRatio = codabar.getNwRatio();
2 或 3。