A demonstration on using the XamCode128Barcode™ control to hide the human-readable text.
Prerequisite topics required to understand this material.
The XamCode128Barcode exposes the Boolean ShowText property. When this property is set to true , its default value, the human readable text or data of the bar code, as it is sometimes called, is visible under the barcode. This property must be set to false to stop the human readable text from being rendered on the screen.
XamBarcode supported Symbologies
The following code samples demonstrate how to use XamCode128Barcode ShowText property to either display or hide the human-readable barcode text. By default, the property is set to true , which displays the text. This property must be set to false in order to hide the human-readable text.
In XAML:
<ig:XamGs1DataBarBarcode
CodeType="Expanded"
Data="1234567890"
ShowText=" />
In C#:
XamGs1DataBarBarcode Barcode = new XamGs1DataBarBarcode ; Barcode.Data = "1234567890"; Barcode.CodeType = GS1CodeType.Expanded; Barcode.ShowText = false;
In Visual Basic:
Dim Barcode As New XamGs1DataBarBarcode() Barcode.Data = "1234567890" Barcode.CodeType = GS1CodeType .Expanded Barcode.ShowText = false