PDFView4NET WinForms Edition
Example 


AlternateData Property
Gets or sets the alternate data to encode as a barcode.
Syntax
'Declaration
 
Public Property AlternateData As Byte()
'Usage
 
Dim instance As PDFBidimensionalBarcode
Dim value() As Byte
 
instance.AlternateData = value
 
value = instance.AlternateData
public byte[] AlternateData {get; set;}

Property Value

A byte array specifying the data to be encoded as a barcode.
Remarks
Barcodes were designed to work with 8bit characters. Because .NET strings are Unicode, when they are converted to 8bit characters (using Windows 1252 encoding) the Unicode characters are removed. This property allows you to specify directly the byte array to encode.
If both PDFBarcode.Data and AlternateData properties are specified, the AlternateData property is used.
Example
The following line of code shows how to encode a Unicode string:
...
barcode.AlternateData = Encoding.Unicode.GetBytes("my unicode string");
...
Requirements

Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025

See Also