Back to Devexpress

CodeMSIGenerator.MSICheckSum Property

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

latest2.9 KB
Original Source

CodeMSIGenerator.MSICheckSum Property

Gets or sets the checksum type for the bar code.

Namespace : DevExpress.XtraPrinting.BarCode

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(MSICheckSum.Modulo10)]
public MSICheckSum MSICheckSum { get; set; }
vb
<DefaultValue(MSICheckSum.Modulo10)>
Public Property MSICheckSum As MSICheckSum

Property Value

TypeDefaultDescription
MSICheckSumModulo10

An MSICheckSum enumeration value which represents the checksum type.

|

Available values:

NameDescription
None

The checksum is not calculated.

| | Modulo10 |

The checksum is calculated with respect to base 10.

| | DoubleModulo10 |

The checksum is calculated with respect to base 10 twice.

|

Remarks

Use this property to specify the checksum method, which defines the appearance of checksum bars added to the bar code. To avoid calculating a checksum for an MSI bar code, set this property’s value to MSICheckSum.None.

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

csharp
// Adjust the properties specific to the bar code type.
((CodeMSIGenerator)barCode.Symbology).MSICheckSum = MSICheckSum.DoubleModulo10;

See Also

MSI - Plessey

CodeMSIGenerator Class

CodeMSIGenerator Members

DevExpress.XtraPrinting.BarCode Namespace