Propriétés
déterminer le contenu et la conception d'un code-barres
Text PropertyLink
Text char
Le texte contient le contenu du code-barres. Habituellement, cela est entré sans un chiffre de contrôle.
Vous pouvez entrer des codes de contrôle sous forme lisible humaine comme ceci: <CR>, <LF>, ...
Vous pouvez entrer des codes de contrôle sous forme lisible humaine comme ceci: <CR>, <LF>, ...
Visual Basic:
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
AxBarcode1.Text = TextBox1.Text
End Sub
Delphi:
procedure TForm1.Edit1Change(Sender: TObject);
begin
Barcode1.Text := Edit1.Text;
end;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
ShowText PropertyLink
ShowText bool
TRUE: Le code-barres a un texte lisible par l'homme.
FALSE: Le code-barres s'affiche sans le texte lisible par l'homme.
Exemples:
ShowText=TRUE
ShowText=FALSE
Veuillez noter que certains types de codes à barres n'ont pas de texte lisible pour l'homme. Cela s'applique à QR Code, PDF417 et DataMatrix. La propriété ShowText n'a aucun effet, lors de l'utilisation de l'un de ces codes.
FALSE: Le code-barres s'affiche sans le texte lisible par l'homme.
Exemples:

ShowText=TRUE

ShowText=FALSE
Veuillez noter que certains types de codes à barres n'ont pas de texte lisible pour l'homme. Cela s'applique à QR Code, PDF417 et DataMatrix. La propriété ShowText n'a aucun effet, lors de l'utilisation de l'un de ces codes.
Visual Basic:
AxBarcode1.ShowText = True
Delphi:
Barcode1.ShowText := TRUE;
C#:
axBarcode1.ShowText = true;
VBA (Office):
Barcode1.ShowText = True
Type PropertyLink
Type long
Spécifie le type de code à barres avec un numéro unique.
Value | Code | Name | |
0 | ISBN-10 | CODEISBN | |
1 | EAN 13 | CODEEAN13 | |
2 | EAN 8 | CODEEAN8 | |
3 | EAN 5 | CODEEAN5 | |
4 | EAN 2 | CODEEAN2 | |
5 | UPC A | CODEUPCA | |
6 | Code 39 | CODE39 | |
7 | Code 25 Interleaved | CODE25I | |
8 | Codabar | CODABAR | |
9 | Code 25 Industrial | CODE25 | |
10 | Code 39 Extended | CODE39E | |
11 | Code 128A | CODECODE128A | |
12 | Code 128B | CODECODE128B | |
13 | Code 128C | CODECODE128C | |
14 | Code 128 | CODECODE128 | |
15 | EAN/UCC 128 | CODEEAN128 | |
16 | EAN 99 | CODEEAN99 | |
17 | UPC E | CODEUPCE | |
18 | PostNet | CODEPOSTNET | |
19 | Royal Mail | CODEROYALMAIL | |
20 | MSI | CODEMSI | |
21 | Code 93 | CODE93 | |
22 | Code 93 Extended | CODE93E | |
23 | PZN7 | CODEPZN8 | |
24 | Identcode | CODEIDENTCODE | |
25 | Leitcode | CODELEITCODE | |
26 | Code 39 Checksum | CODE39CHECKSUM | |
27 | Code 39 Extended Checksum | CODE39ECHECKSUM | |
28 | EAN/UCC 128 AI | CODEEAN128AI | |
29 | EAN 14 | CODEEAN14 | |
30 | ITF-14 | CODEITF14 | |
31 | EAN-18/NVE | CODEEAN18 | |
32 | SSCC-18 | CODESSCC18 | |
33 | Codabar Checksum | CODABARCHECKSUM | |
34 | Code 25 Interleaved Checksum | CODE25ICHECKSUM | |
35 | Code 25 Industrial Checksum | CODE25CHECKSUM | |
36 | PDF417 | CODEPDF417 | |
37 | DataMatrix | CODEDATAMATRIX | |
38 | ISBN-13 | CODEISBN13 | |
39 | ISBN-13 Dual | CODEISBN13DUAL | |
40 | ISSN | CODEISSN | |
41 | ISMN | CODEISMN | |
42 | DataMatrix Square | CODEDATAMATRIXSQUARE | |
43 | DataMatrix Rectangular | CODEDATAMATRIXRECTANGULAR | |
44 | DataMatrix 10x10 | CODEDATAMATRIX10X10 | |
45 | DataMatrix 12x12 | CODEDATAMATRIX12X12 | |
46 | DataMatrix 8x18 | CODEDATAMATRIX8X18 | |
47 | DataMatrix 14x14 | CODEDATAMATRIX14X14 | |
48 | DataMatrix 8x32 | CODEDATAMATRIX8X32 | |
49 | DataMatrix 16x16 | CODEDATAMATRIX16X16 | |
50 | DataMatrix 12x26 | CODEDATAMATRIX12X26 | |
51 | DataMatrix 18x18 | CODEDATAMATRIX18X18 | |
52 | DataMatrix 20x20 | CODEDATAMATRIX20X20 | |
53 | DataMatrix 12x36 | CODEDATAMATRIX12X36 | |
54 | DataMatrix 22x22 | CODEDATAMATRIX22X22 | |
55 | DataMatrix 16x36 | CODEDATAMATRIX16X36 | |
56 | DataMatrix 24x24 | CODEDATAMATRIX24X24 | |
57 | DataMatrix 26x26 | CODEDATAMATRIX26X26 | |
58 | DataMatrix 16x48 | CODEDATAMATRIX16X48 | |
59 | DataMatrix 32x32 | CODEDATAMATRIX32X32 | |
60 | DataMatrix 36x36 | CODEDATAMATRIX36X36 | |
61 | DataMatrix 40x40 | CODEDATAMATRIX40X40 | |
62 | DataMatrix 44x44 | CODEDATAMATRIX44X44 | |
63 | DataMatrix 48x48 | CODEDATAMATRIX48X48 | |
64 | DataMatrix 52x52 | CODEDATAMATRIX52X52 | |
65 | DataMatrix 64x64 | CODEDATAMATRIX64X64 | |
66 | DataMatrix 72x72 | CODEDATAMATRIX72X72 | |
67 | DataMatrix 80x80 | CODEDATAMATRIX80X80 | |
68 | DataMatrix 88x88 | CODEDATAMATRIX88X88 | |
69 | DataMatrix 96x96 | CODEDATAMATRIX96X96 | |
70 | DataMatrix 104x104 | CODEDATAMATRIX104X104 | |
71 | DataMatrix 120x120 | CODEDATAMATRIX120X120 | |
72 | DataMatrix 132x132 | CODEDATAMATRIX132X132 | |
73 | DataMatrix 144x144 | CODEDATAMATRIX144X144 | |
74 | GS1-Data Matrix | CODEGS1DATAMATRIX | |
75 | GS1-Data Matrix Square | CODEGS1DATAMATRIXSQUARE | |
76 | GS1-Data Matrix Rectangular | CODEGS1DATAMATRIXRECTANGULAR | |
77 | GS1-Data Matrix 10x10 | CODEGS1DATAMATRIX10X10 | |
78 | GS1-Data Matrix 12x12 | CODEGS1DATAMATRIX12X12 | |
79 | GS1-Data Matrix 8x18 | CODEGS1DATAMATRIX8X18 | |
80 | GS1-Data Matrix 14x14 | CODEGS1DATAMATRIX14X14 | |
81 | GS1-Data Matrix 8x32 | CODEGS1DATAMATRIX8X32 | |
82 | GS1-Data Matrix 16x16 | CODEGS1DATAMATRIX16X16 | |
83 | GS1-Data Matrix 12x26 | CODEGS1DATAMATRIX12X26 | |
84 | GS1-Data Matrix 18x18 | CODEGS1DATAMATRIX18X18 | |
85 | GS1-Data Matrix 20x20 | CODEGS1DATAMATRIX20X20 | |
86 | GS1-Data Matrix 12x36 | CODEGS1DATAMATRIX12X36 | |
87 | GS1-Data Matrix 22x22 | CODEGS1DATAMATRIX22X22 | |
88 | GS1-Data Matrix 16x36 | CODEGS1DATAMATRIX16X36 | |
89 | GS1-Data Matrix 24x24 | CODEGS1DATAMATRIX24X24 | |
90 | GS1-Data Matrix 26x26 | CODEGS1DATAMATRIX26X26 | |
91 | GS1-Data Matrix 16x48 | CODEGS1DATAMATRIX16X48 | |
92 | GS1-Data Matrix 32x32 | CODEGS1DATAMATRIX32X32 | |
93 | GS1-Data Matrix 36x36 | CODEGS1DATAMATRIX36X36 | |
94 | GS1-Data Matrix 40x40 | CODEGS1DATAMATRIX40X40 | |
95 | GS1-Data Matrix 44x44 | CODEGS1DATAMATRIX44X44 | |
96 | GS1-Data Matrix 48x48 | CODEGS1DATAMATRIX48X48 | |
97 | GS1-Data Matrix 52x52 | CODEGS1DATAMATRIX52X52 | |
98 | GS1-Data Matrix 64x64 | CODEGS1DATAMATRIX64X64 | |
99 | None | CODENONE | |
100 | GS1-Data Matrix 72x72 | CODEGS1DATAMATRIX72X72 | |
101 | GS1-Data Matrix 80x80 | CODEGS1DATAMATRIX80X80 | |
102 | GS1-Data Matrix 88x88 | CODEGS1DATAMATRIX88X88 | |
103 | GS1-Data Matrix 96x96 | CODEGS1DATAMATRIX96X96 | |
104 | GS1-Data Matrix 104x104 | CODEGS1DATAMATRIX104X104 | |
105 | GS1-Data Matrix 120x120 | CODEGS1DATAMATRIX120X120 | |
106 | GS1-Data Matrix 132x132 | CODEGS1DATAMATRIX132X132 | |
107 | GS1-Data Matrix 144x144 | CODEGS1DATAMATRIX144X144 | |
108 | GS1-128 | CODEGS1128 | |
109 | GTIN-8 | CODEGTIN8 | |
110 | GTIN-12 | CODEGTIN12 | |
111 | GTIN-13 | CODEGTIN13 | |
112 | GTIN-14 | CODEGTIN14 | |
113 | QR Code | CODEQRCODE | |
114 | QR Code ECC Level L | CODEQRCODEECCLEVELL | |
115 | QR Code ECC Level M | CODEQRCODEECCLEVELM | |
116 | QR Code ECC Level Q | CODEQRCODEECCLEVELQ | |
117 | QR Code ECC Level H | CODEQRCODEECCLEVELH | |
118 | QR Code 21x21 | CODEQRCODE21X21 | |
119 | QR Code 25x25 | CODEQRCODE25X25 | |
120 | QR Code 29x29 | CODEQRCODE29X29 | |
121 | QR Code 33x33 | CODEQRCODE33X33 | |
122 | QR Code 37x37 | CODEQRCODE37X37 | |
123 | QR Code 41x41 | CODEQRCODE41X41 | |
124 | QR Code 45x45 | CODEQRCODE45X45 | |
125 | QR Code 49x49 | CODEQRCODE49X49 | |
126 | QR Code 53x53 | CODEQRCODE53X53 | |
127 | QR Code 57x57 | CODEQRCODE57X57 | |
128 | QR Code 61x61 | CODEQRCODE61X61 | |
129 | QR Code 65x65 | CODEQRCODE65X65 | |
130 | QR Code 69x69 | CODEQRCODE69X69 | |
131 | QR Code 73x73 | CODEQRCODE73X73 | |
132 | QR Code 77x77 | CODEQRCODE77X77 | |
133 | QR Code 81x81 | CODEQRCODE81X81 | |
134 | QR Code 85x85 | CODEQRCODE85X85 | |
135 | QR Code 89x89 | CODEQRCODE89X89 | |
136 | QR Code 93x93 | CODEQRCODE93X93 | |
137 | QR Code 97x97 | CODEQRCODE97X97 | |
138 | QR Code 101x101 | CODEQRCODE101X101 | |
139 | QR Code 105x105 | CODEQRCODE105X105 | |
140 | QR Code 109x109 | CODEQRCODE109X109 | |
141 | QR Code 113x113 | CODEQRCODE113X113 | |
142 | QR Code 117x117 | CODEQRCODE117X117 | |
143 | QR Code 121x121 | CODEQRCODE121X121 | |
144 | QR Code 125x125 | CODEQRCODE125X125 | |
145 | QR Code 129x129 | CODEQRCODE129X129 | |
146 | QR Code 133x133 | CODEQRCODE133X133 | |
147 | QR Code 137x137 | CODEQRCODE137X137 | |
148 | QR Code 141x141 | CODEQRCODE141X141 | |
149 | QR Code 145x145 | CODEQRCODE145X145 | |
150 | QR Code 149x149 | CODEQRCODE149X149 | |
151 | QR Code 153x153 | CODEQRCODE153X153 | |
152 | QR Code 157x157 | CODEQRCODE157X157 | |
153 | QR Code 161x161 | CODEQRCODE161X161 | |
154 | QR Code 165x165 | CODEQRCODE165X165 | |
155 | QR Code 169x169 | CODEQRCODE169X169 | |
156 | QR Code 173x173 | CODEQRCODE173X173 | |
157 | QR Code 177x177 | CODEQRCODE177X177 | |
158 | PZN8 | CODEPZN8 |
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
Rotate PropertyLink
Rotate long
L'orientation du code-barres en degrés (0, 90, 180, 270).
Exemples

0 degrés
90 degrés
180 degrés
270 degrés
Exemples

0 degrés

90 degrés

180 degrés

270 degrés
Visual Basic:
AxBarcode1.Rotate = 0 AxBarcode1.Rotate = 90 AxBarcode1.Rotate = 180 AxBarcode1.Rotate = 270
Delphi:
Barcode1.Rotate := 0; Barcode1.Rotate := 90; Barcode1.Rotate := 180; Barcode1.Rotate := 270;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
Alignment PropertyLink
Alignment AlignConstants
Définit l'alignement du code-barres vers la gauche, vers la droite ou centré. Vous pouvez passer AlignLeft, AlignCenter ou AlignRight.
Exemples:

AlignLeft

AlignCenter

AlignRight
Déclaration de 'AlignConstants':
Exemples:

AlignLeft

AlignCenter

AlignRight
Déclaration de 'AlignConstants':
type AlignConstants = TOleEnum; const ALIGNLEFT = $00000000; ALIGNCENTER = $00000001; ALIGNRIGHT = $00000002;
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
TypeName PropertyLink
TypeName char
Le nom du type de code à barres.
Visual Basic:
AxBarcode1.TypeName = "EAN-13" AxBarcode1.Text = "431234100707" MessageBox.Show("Current barcode symbology is: " & AxBarcode1.TypeName)
Delphi:
Barcode1.TypeName := 'EAN-13'; Barcode1.Text := '431234100707'; Application.Messagebox(PChar(Barcode1.TypeName),'Current Barcode symbology',mb_ok);
VBA (Office):
Barcode1.TypeName = "EAN-13" Barcode1.Text = "431234100707" MsgBox ("Current barcode symbology is: " & Barcode1.TypeName)
IsValid PropertyLink
IsValid bool
Retourne VRAI si le code à barres est valide. S'il est invalide, le texte ne peut pas être codé avec le type de code à barres sélectionné.
Visual Basic:
If AxBarcode1.IsValid = False Then
MessageBox.Show("Barcode is not valid. Please change properties")
End If
IsSizeOk PropertyLink
IsSizeOk bool
Indique si le code-barres peut être affiché correctement. Retourne VRAI si les dimensions du contrôle sont assez grandes pour afficher le code-barres. Cette valeur ne peut devenir VRAIE que si le code-barres lui-même est correct - c'est-à-dire si la valeur IsValid est également VRAIE.
Visual Basic:
If AxBarcode1.IsSizeOk = False Then
MessageBox.Show("Objects size is to small. Please enlarge")
End If
Checksum PropertyLink
Checksum long
Retourne le chiffre de contrôle.
Visual Basic:
AxBarcode1.TypeName = "EAN-13"
AxBarcode1.Text = "431234100707"
MessageBox.Show("The check digit of this code is: " & AxBarcode1.Checksum)
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Application.Messagebox(Pchar(inttostr(Barcode1.Checksum)),
'The barcodes check digit',mb_ok);
Picture PropertyLink
Picture pictureobject
Renvoie l'image du code-barres.
Si vous avez besoin de l'image dans une taille spécifique, utilisez la méthode CreatePictureBySize avant de récupérer l'image.
Si vous avez besoin de l'image dans une taille spécifique, utilisez la méthode CreatePictureBySize avant de récupérer l'image.
Visual Basic:
' Set the bitmap picture of the barcode to the clipboard
Clipboard.Clear()
Clipboard.SetImage(AxBarcode1.Picture)
BackColor PropertyLink
BackColor OLE_Color
Couleur de fond du code-barres.
Exemples:
Blanc BackColor
Vert BackColor
Exemples:

Blanc BackColor

Vert BackColor
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.BackColor = &HFFFFFF ' White
ForeColor PropertyLink
ForeColor OLE_Color
Couleur de premier plan du code-barres.
Exemples:
Noir Forecolor
Vert Forecolor
Exemples:

Noir Forecolor

Vert Forecolor
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.ForeColor = &H000000 ' Black
Font PropertyLink
Font fontobject
Spécifie la police par nom, style, effets et la taille de la ligne de texte.
La propriété Font est un objet qui illustre les différentes propriétés de la police.
L'utilisation de l'objet de police est la suivante :
Modifier la taille :
Barcode1.Font.Size = 10
Modifier la Police :
Barcode1.Font.Name = "Arial"
Changer le style et les effets :
Barcode1.Font.Bold = True
Barcode1.Font.Italic = True
Barcode1.Font.Underline = True
Barcode1.Font.Strikethrough = True
Dans certains environnements en développement, ces propriétés sont déterminées par des types d'énumération, par exemple Delphes. Jetez un coup d'œil à l'aide du système en développement pour obtenir de l'information sur la façon de les traiter.
Exemples:
Font: Arial, 12pt, Bold
Font: Comix, 14pt, Standard
La propriété Font est un objet qui illustre les différentes propriétés de la police.
L'utilisation de l'objet de police est la suivante :
Modifier la taille :
Barcode1.Font.Size = 10
Modifier la Police :
Barcode1.Font.Name = "Arial"
Changer le style et les effets :
Barcode1.Font.Bold = True
Barcode1.Font.Italic = True
Barcode1.Font.Underline = True
Barcode1.Font.Strikethrough = True
Dans certains environnements en développement, ces propriétés sont déterminées par des types d'énumération, par exemple Delphes. Jetez un coup d'œil à l'aide du système en développement pour obtenir de l'information sur la façon de les traiter.
Exemples:

Font: Arial, 12pt, Bold

Font: Comix, 14pt, Standard
Delphi:
Barcode1.Font.name := 'Courier New'; Barcode1.Font.size := 14; Barcode1.Font.style := [fsbold];
Version PropertyLink
Version char
Retourne le numéro de version de l'objet de code à barres.
Visual Basic:
MessageBox.Show("The barcode objects version is: " & AxBarcode1.version)
Delphi:
Application.Messagebox(Pchar(Barcode1.Version),
'The barcode objects version number',mb_ok);
BorderHeight PropertyLink
BorderHeight long
Hauteur de la bordure au-dessus et sous le code-barres en pixels. La bordure est peinte dans la couleur de fond actuelle.
Exemples:
BorderHeight=4
BorderHeight=20
Exemples:

BorderHeight=4

BorderHeight=20
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
BorderWidth PropertyLink
BorderWidth long
Largeur de la bordure à gauche et à droite du code-barres en pixels. La bordure est peinte dans la couleur de fond actuelle.
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
MaxBorderHeight PropertyLink
MaxBorderHeight long
La valeur maximale possible de BorderHeight.
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
MaxBorderWidth PropertyLink
MaxBorderWidth long
La valeur maximale possible de BorderWidth.
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
NotchHeightInPercent PropertyLink
NotchHeightInPercent long
Longueur des encoches en pourcentage.
Exemples:
NotchHeightInPercent=50
NotchHeightInPercent=100
NotchHeightInPercent=0
Exemples:

NotchHeightInPercent=50

NotchHeightInPercent=100

NotchHeightInPercent=0
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
PrintFix PropertyLink
PrintFix bool
Non utilisé. Aucune fonctionnalité depuis la version 6.0.0.
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText
AutoType PropertyLink
AutoType bool
ActiveBarcde tente de détecter automatiquement le type de code à barres. Cette propriété est désuète et ne doit pas être invoquée. Il est implémenté à des fins de compatibilité avec les anciennes versions.
Visual Basic:
AxBarcode1.Type = 1 ' EAN-13
AxBarcode1.Text = "431234100707"
AxBarcode1.ForeColor = Color.DimGray
AxBarcode1.BackColor = Color.AntiqueWhite
AxBarcode1.BorderHeight = 10
AxBarcode1.BorderWidth = 20
AxBarcode1.Rotate = 90
AxBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER
AxBarcode1.NotchHeightInPercent = 50
AxBarcode1.AutoType = False
AxBarcode1.PrintFix = False
AxBarcode1.AboutBox
axBarcode1.SetDemoText
Delphi:
Barcode1.Type_ := 1; // EAN_13
Barcode1.Text := '431234100707';
Barcode1.Alignment := AlignLeft;
Barcode1.ForeColor := clDkGray;
Barcode1.BackColor := clCream;
Barcode1.BorderHeight := 10;
Barcode1.BorderWidth := 20;
Barcode1.NotchHeightInPercent := 50;
Barcode1.AutoType := FALSE;
Barcode1.PrintFix := FALSE;
Barcode1.AboutBox;
Barcode1.SetDemoText;
if (Barcode1.MaxBorderHeight < MyValue) then BEGIN DoAnything; END;
if (Barcode1.MaxBorderWidth < MyValue) then BEGIN DoAnything; END;
C#:
axBarcode1.Type = BARCODELib.TypeConstants.CODEEAN13;
axBarcode1.Text = "431234100707";
axBarcode1.ForeColor = Color.DimGray;
axBarcode1.BackColor = Color.AntiqueWhite;
axBarcode1.Rotate = 90;
axBarcode1.BorderHeight = 10;
axBarcode1.BorderWidth = 20;
axBarcode1.Alignment = BARCODELib.AlignConstants.ALIGNCENTER;
axBarcode1.NotchHeightInPercent = 50;
axBarcode1.AutoType = false;
axBarcode1.PrintFix = false;
axBarcode1.AboutBox;
axBarcode1.SetDemoText;
VBA (Office):
Barcode1.Type = 1 ' EAN-13
Barcode1.Text = "431234100707"
Barcode1.ForeColor = vbBlack
Barcode1.BackColor = vbWhite
Barcode1.BorderHeight = 10
Barcode1.BorderWidth = 20
Barcode1.Rotate = 90
Barcode1.Alignment = ALIGNCENTER
Barcode1.NotchHeightInPercent = 50
Barcode1.AutoType = False
Barcode1.PrintFix = False
Barcode1.AboutBox
Barcode1.SetDemoText