←Select platform

HorizontalAlignment Property

Summary

Gets or sets a value indicating the horizontal alignment to use when fitting this barcode inside the destination bounds.

Syntax

C#
VB
Java
Objective-C
C++
public BarcodeAlignment HorizontalAlignment { get; set; } 

Public Property HorizontalAlignment As BarcodeAlignment 

@property (nonatomic, assign) LTBarcodeAlignment horizontalAlignment 

public BarcodeAlignment getHorizontalAlignment() 
public void setHorizontalAlignment(BarcodeAlignment value) 

public: 
property BarcodeAlignment HorizontalAlignment { 
   BarcodeAlignment get(); 
   void set (    BarcodeAlignment ); 
} 

Property Value

An BarcodeAlignment enumeration member that indicating the horizontal alignment to use when fitting this barcode inside the destination bounds. Default value is BarcodeAlignment.Near.

Remarks

When writing barcodes, the BarcodeWriter object may not use all the area defined by the output rectangle (BarcodeData.Bounds) since not all sizes can be used when writing a barcode and the value of the width and height of the bounds can have a special meaning. For more information, refer to Writing Barcodes - Bounds and XModule.

In cases where not all of the bounds is used, an alignment value can set to determine whether the result barcode is left, top, right, bottom or center aligned to the rectangle. For these, you can use the BarcodeAlignment enumeration to control how the barcode is written.

Example

For an example, refer to BarcodeAlignment.

Requirements

Target Platforms

Help Version 20.0.2018.6.20
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly