Version

Hiding Barcode Text

Topic Overview

Purpose

A demonstration on using the XamCode128Barcode™ control to hide the human-readable text.

Required background

Prerequisite topics required to understand this material.

Topic Purpose

Describes the control and related topics.

Hiding Human Readable Text – Conceptual Overview

Introduction

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.

Human-readable text enabled: Human-readable text disabled:
xamBarcode HidingBarcodeText 01.png
xamBarcode HidingBarcodeText 02.png

Hiding the Barcode Text – Code Example

Description

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.

Code

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