[]
IBarcodeThis interface represents a DataMatrix barcode value returned from a worksheet cell. In addition to the common barcode properties defined by IBarcode, it provides access to DataMatrix-specific settings such as the ECC mode, symbol size, encoding mode, and structured append information.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",FALSE,0,0,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
EccMode eccMode = dataMatrix.getEccMode();
intbooleanintgetBackgroundColor, getCodeType, getColor, getQuietZoneBottom, getQuietZoneLeft, getQuietZoneRight, getQuietZoneTop, getValueThis method returns the error correction mode used by the current DataMatrix barcode, such as EccMode.ECC000 or EccMode.ECC200.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",FALSE,0,0,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
EccMode eccMode = dataMatrix.getEccMode();
This method returns the symbol size string used by a DataMatrix barcode when the ECC mode is ECC200.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",FALSE,0,0,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
String symbolSize = dataMatrix.getEcc200SymbolSize();
This method returns the encoding mode string used by a DataMatrix barcode when the ECC mode is ECC200.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",FALSE,0,0,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
String encodingMode = dataMatrix.getEcc200EndcodingMode();
This value corresponds to the ECC000-140 symbol size specified for the DataMatrix barcode.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"ECC000\",\"squareAuto\",\"auto\",\"auto\",FALSE,0,0,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
String symbolSize = dataMatrix.getEcc00140SymboleSize();
"auto".Structured append is only supported by ECC200.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",TRUE,1,10,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
boolean structureAppend = dataMatrix.getStructureAppend();
true if the current symbol is part of structured append symbols; otherwise, false.This property is used only when the ECC mode is EccMode.ECC200.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",TRUE,1,10,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
int structureNumber = dataMatrix.getStructureNumber();
This property applies to ECC200 structured append symbols. The valid file identifier value is within the range [1, 254]. A value of 0 indicates that the file identifier is calculated automatically.
worksheet.getRange("A1").setValue("Test");
worksheet.getRange("B1").setFormula("=BC_DATAMATRIX(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"" + EccMode.ECC200.name() + "\",\"squareAuto\",\"auto\",\"auto\",TRUE,1,10,4,4,4,4)");
IDataMatrix dataMatrix = (IDataMatrix) worksheet.getRange("B1").getValue();
int fileIdentifier = dataMatrix.getFileIdentifier();
0 if the file identifier is calculated automatically.