UniPRT SDK  v1.0.0.0
DataMatrixBarcode 類別 參考文件
類別DataMatrixBarcode的繼承圖:
ADataMatrix ABarcode2D ISquareCell IBarcode2D IBarcodeItem_2D IPositionRuler IRotation

公開方法(Public Methods)

 DataMatrixBarcode (IPoint start, String data)
 
ICellSquare GetCellSize ()
 條碼單元格大小。較大的單元格會導致條碼佔用更大的區域。
 
String GetCtrlChar (int decimalCharValue)
 取得代表範圍為0-31的不可打印控制字符的字串。 更多...
 
String GetData ()
 條碼內容。
 
String GetFNC1 ()
 獲取代表FNC1字符的字串,以便將其包含在條碼數據中。
 
RotateEnum GetRotation ()
 
Tuple< Integer, Integer > GetRowsCols ()
 指定條碼的行數和列數,以手動設置條碼矩陣的尺寸。 更多...
 
IRuler GetRuler ()
 列印解析度可以設為英寸或毫米刻度。設置/更新其中一種刻度會導致兩者都被更新。 更多...
 
IPoint GetStart ()
 條碼開始的位置。
 
boolean IsRectangle ()
 將條碼形狀設為矩形,否則預設為正方形。
 
void SetCellSize (ICellSquare cellSize)
 
void SetData (String data)
 
void SetRectangle (boolean rectangle)
 
void SetRotation (RotateEnum rotation)
 
void SetRowsCols (Tuple< Integer, Integer > rowsCols)
 
void SetRuler (IRuler ruler)
 
void SetStart (IPoint start)
 
String ToString ()
 Returns the string that can be sent to printer.
 
String toString ()
 

保護屬性

char ctrlCharDelimiter = CTRL_DELIM_PGL
 

靜態保護屬性

static final char CTRL_DELIM_PGL = '\u000E'
 
static final char CTRL_DELIM_TSPL = '~'
 

函式成員說明文件

◆ GetCtrlChar()

String GetCtrlChar ( int  decimalCharValue)
inherited

取得代表範圍為0-31的不可打印控制字符的字串。

當需要在條碼數據中包含不可打印字符時,此功能十分有用。 例如:行尾字符0x0D(CR)或0x0A(LF),其十進制值分別為13或10。

◆ GetRowsCols()

Tuple<Integer, Integer> GetRowsCols ( )
inherited

指定條碼的行數和列數,以手動設置條碼矩陣的尺寸。

必須根據選擇的正方形或矩形形狀指定行和列的有效值 Rectangle。
有效的正方形尺寸(行和列):10, 12, 14, 16, 18, 20, 22, 24, 26, 32, 36, 40, 44, 48, 52, 64, 72, 80, 88, 96, 104, 120, 132, 144
有效的矩形尺寸(行 x 列):8x18, 8x32, 12x26, 12x36, 16x36, 16x48

參數
[in]Item1行數。設為0以允許自動設定尺寸。
[in]Item2列數。設為0以允許自動設定尺寸。

◆ GetRuler()

IRuler GetRuler ( )
inherited

列印解析度可以設為英寸或毫米刻度。設置/更新其中一種刻度會導致兩者都被更新。

列印解析度必須與打印機的解析度匹配。如果解析度與打印機不匹配,將導致列印錯誤。

實作 IPositionRuler.