Back to Devexpress

CodabarGenerator.StartSymbol Property

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

latest3.0 KB
Original Source

CodabarGenerator.StartSymbol Property

Gets or sets the first (start) symbol used to code the barcode’s structure.

Namespace : DevExpress.XtraPrinting.BarCode

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(CodabarStartStopSymbol.A)]
public CodabarStartStopSymbol StartSymbol { get; set; }
vb
<DefaultValue(CodabarStartStopSymbol.A)>
Public Property StartSymbol As CodabarStartStopSymbol

Property Value

TypeDefaultDescription
CodabarStartStopSymbolA

A CodabarStartStopSymbol enumeration value that specifies the start symbol.

|

Available values:

NameDescription
None

The first/last element in a bar code is not specified.

| | A |

The first/last element in a bar code is “A”.

| | B |

The first/last element in a bar code is “B”.

| | C |

The first/last element in a bar code is “C”.

| | D |

The first/last element in a bar code is “D”.

|

Remarks

Note that the specified StartSymbol and CodabarGenerator.StopSymbol are added to the barcode automatically, so you don’t need to specify them in the barcode’s XRControl.Text property.

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

csharp
// Adjust the properties specific to the bar code type.
((CodabarGenerator)barCode.Symbology).StartSymbol = CodabarStartStopSymbol.C;
((CodabarGenerator)barCode.Symbology).StopSymbol = CodabarStartStopSymbol.D;

See Also

CodabarGenerator Class

CodabarGenerator Members

DevExpress.XtraPrinting.BarCode Namespace