Back to Devexpress

CodabarGenerator.StopSymbol Property

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

latest3.0 KB
Original Source

CodabarGenerator.StopSymbol Property

Gets or sets the last (stop) 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 StopSymbol { get; set; }
vb
<DefaultValue(CodabarStartStopSymbol.A)>
Public Property StopSymbol As CodabarStartStopSymbol

Property Value

TypeDefaultDescription
CodabarStartStopSymbolA

A CodabarStartStopSymbol enumeration value that specifies the stop 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 CodabarGenerator.StartSymbol and 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 StopSymbol 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#L83

csharp
((CodabarGenerator)barCode.Symbology).StartSymbol = CodabarStartStopSymbol.C;
((CodabarGenerator)barCode.Symbology).StopSymbol = CodabarStartStopSymbol.D;
((CodabarGenerator)barCode.Symbology).WideNarrowRatio = 2.5F;

See Also

CodabarGenerator Class

CodabarGenerator Members

DevExpress.XtraPrinting.BarCode Namespace