Back to Devexpress

DataBarGenerator.Type Property

corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-databargenerator.md

latest2.7 KB
Original Source

DataBarGenerator.Type Property

Gets or sets the type of a GS1 DataBar bar code.

Namespace : DevExpress.XtraPrinting.BarCode

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(DataBarType.Omnidirectional)]
public DataBarType Type { get; set; }
vb
<DefaultValue(DataBarType.Omnidirectional)>
Public Property Type As DataBarType

Property Value

TypeDefaultDescription
DataBarTypeOmnidirectional

A DataBarType value specifying the GS1 DataBar bar code’s type.

|

Available values:

NameDescription
Omnidirectional

A GS1 DataBar Omnidirectional bar code is generated.

| | Truncated |

A GS1 DataBar Truncated bar code is generated.

| | Stacked |

A GS1 DataBar Stacked bar code is generated.

| | StackedOmnidirectional |

A GS1 DataBar Stacked Omnidirectional bar code is generated.

| | Limited |

A GS1 DataBar Limited bar code is generated.

| | Expanded |

A GS1 DataBar Expanded bar code is generated.

| | ExpandedStacked |

A GS1 DataBar Expanded Stacked bar code is generated.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Type 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#L259

csharp
((DataBarGenerator)barCode.Symbology).SegmentsInRow = 4;
((DataBarGenerator)barCode.Symbology).Type = DataBarType.ExpandedStacked;

See Also

DataBarGenerator Class

DataBarGenerator Members

DevExpress.XtraPrinting.BarCode Namespace