Version

Hiding Barcode Text

Topic Overview

Purpose

A demonstration on using the UltraCode128Barcode™ 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 UltraCode128Barcode 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 UltraCode128Barcode 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 C#:

UltraCode128Barcode Barcode = new UltraCode128Barcode();
Barcode.Data = "1234567890";
Barcode.CodeType = Code128CodeType.Standard;
Barcode.ShowText = false;

In Visual Basic:

Dim Barcode As New UltraCode128Barcode()
Barcode.Data = "1234567890"
Barcode.CodeType = Code128CodeType.Standard
Barcode.ShowText = False