[]
        
(Showing Draft Content)

ICode49

Interface ICode49

All Superinterfaces:
IBarcode, IFontOption, ILabelOption

public interface ICode49 extends IBarcode, IFontOption, ILabelOption
Represents a Code 49 barcode.

Code 49 is a two dimensional, high-density stacked barcode with two to eight rows, with each row containing eight characters. Each row has a start code and a stop code. This barcode is especially used to encode the complete ASCII character set.

This interface provides access to Code 49 barcode settings and inherited barcode, font, and label options.


 worksheet.getRange("A1").setValue(123456789);
 worksheet.getRange("B1").setFormula("=BC_CODE49(A1)");
 ICode49 code49 = (ICode49) worksheet.getRange("B1").getValue();
 boolean grouping = code49.getGrouping();
 
  • Method Details

    • getGrouping

      boolean getGrouping()
      Gets whether the symbol mode is grouped alphanumeric mode.

      The default value is false.

      
       worksheet.getRange("A1").setValue(123456789);
       worksheet.getRange("B1").setFormula("=BC_CODE49(A1)");
       ICode49 code49 = (ICode49) worksheet.getRange("B1").getValue();
       boolean grouping = code49.getGrouping();
       
      Returns:
      true if the symbol mode is grouped alphanumeric mode; otherwise, false.
    • getGroupNo

      int getGroupNo()
      Gets the index of the symbol in the group.

      This value represents the position of the symbol within a grouped Code 49 barcode. The default value is 0.

      
       worksheet.getRange("A1").setValue(123456789);
       worksheet.getRange("B1").setFormula("=BC_CODE49(A1)");
       ICode49 code49 = (ICode49) worksheet.getRange("B1").getValue();
       int groupNo = code49.getGroupNo();
       
      Returns:
      The index of the symbol in the group. Returns 0 by default.