Back to Devexpress

PDF417Generator.Columns Property

corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-pdf417generator-9619f1d9.md

latest2.9 KB
Original Source

PDF417Generator.Columns Property

Gets or sets the number of bar code columns, which allows control of the logic width of the bar code.

Namespace : DevExpress.XtraPrinting.BarCode

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(1)]
public int Columns { get; set; }
vb
<DefaultValue(1)>
Public Property Columns As Integer

Property Value

TypeDefaultDescription
Int321

An integer, specifying the logic width of the bar code.

|

Remarks

Use the Columns and PDF417Generator.Rows properties, to control the logic dimensions of the barcode.

Note

At design time, the Columns property is tied to the PDF417Generator.Rows property, so that modifying either of them causes immediate modification of its counterpart, to meet the requirements of this bar code type’s specification.

To determine the height-to-width ratio of a logical unit’s graphic representation, use the PDF417Generator.YToXRatio property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Columns property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-add-a-bar-code-to-a-report/CS/Form1.cs#L446

csharp
// Adjust the properties specific to the bar code type.
((PDF417Generator)barCode.Symbology).Columns = 1;
((PDF417Generator)barCode.Symbology).CompactionMode = PDF417CompactionMode.Text;

See Also

PDF417

PDF417Generator Class

PDF417Generator Members

DevExpress.XtraPrinting.BarCode Namespace