Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.22
|
Leadtools.Barcode Namespace > DatamatrixBarcodeWriteOptions Class : HorizontalAlignment Property |
[DisplayNameAttribute("Horizontal alignment")] [CategoryAttribute(" Alignment")] [DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")] [DefaultValueAttribute()] public BarcodeAlignment HorizontalAlignment {get; set;}
'Declaration
<DisplayNameAttribute("Horizontal alignment")> <CategoryAttribute(" Alignment")> <DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")> <DefaultValueAttribute()> Public Property HorizontalAlignment As BarcodeAlignment
'Usage
Dim instance As DatamatrixBarcodeWriteOptions Dim value As BarcodeAlignment instance.HorizontalAlignment = value value = instance.HorizontalAlignment
[DisplayNameAttribute("Horizontal alignment")] [CategoryAttribute(" Alignment")] [DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")] [DefaultValueAttribute()] public BarcodeAlignment HorizontalAlignment {get; set;}
@property (nonatomic, assign) LTBarcodeAlignment horizontalAlignment
public BarcodeAlignment getHorizontalAlignment() public void setHorizontalAlignment(BarcodeAlignment value)
DisplayNameAttribute("Horizontal alignment") CategoryAttribute(" Alignment") DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)") DefaultValueAttribute() <br/>get_HorizontalAlignment();<br/>set_HorizontalAlignment(value);<br/>Object.defineProperty('HorizontalAlignment');
[DisplayNameAttribute("Horizontal alignment")] [CategoryAttribute(" Alignment")] [DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")] [DefaultValueAttribute()] public: property BarcodeAlignment HorizontalAlignment { BarcodeAlignment get(); void set ( BarcodeAlignment value); }
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 resulting 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.
For an example, refer to BarcodeAlignment.