Leadtools.Barcode Namespace > PDF417BarcodeWriteOptions Class : HorizontalAlignment Property |
[DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")] [DefaultValueAttribute()] [CategoryAttribute(" Alignment")] [DisplayNameAttribute("Horizontal alignment")] public BarcodeAlignment HorizontalAlignment {get; set;}
'Declaration <DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")> <DefaultValueAttribute()> <CategoryAttribute(" Alignment")> <DisplayNameAttribute("Horizontal alignment")> Public Property HorizontalAlignment As BarcodeAlignment
'Usage Dim instance As PDF417BarcodeWriteOptions Dim value As BarcodeAlignment instance.HorizontalAlignment = value value = instance.HorizontalAlignment
[DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")] [DefaultValueAttribute()] [CategoryAttribute(" Alignment")] [DisplayNameAttribute("Horizontal alignment")] public BarcodeAlignment HorizontalAlignment {get; set;}
ObjectiveC Syntax
Java Syntax
DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)") DefaultValueAttribute() CategoryAttribute(" Alignment") DisplayNameAttribute("Horizontal alignment") get_HorizontalAlignment();
set_HorizontalAlignment(value);
[DescriptionAttribute("Horizontal alignment for the barcode inside the bounds. Near (Left), Center or Far (Right)")] [DefaultValueAttribute()] [CategoryAttribute(" Alignment")] [DisplayNameAttribute("Horizontal alignment")] 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 are used, an alignment value can be 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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2