CodeGlyphX logo
CodeGlyphX

API Reference

Struct

BarSegment

Namespace CodeGlyphX
Assembly CodeGlyphX
Base ValueType
Modifiers sealed

Represents a single run in a 1D barcode, expressed in module units.

Inheritance

  • ValueType
  • BarSegment

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

public BarSegment(Boolean isBar, Int32 modules) #

Creates a new BarSegment.

Parameters

isBar System.Boolean requiredposition: 0
Whether the segment is a bar (dark) or a space (light).
modules System.Int32 requiredposition: 1
Width of the segment in modules (must be > 0).

Properties

public Boolean IsBar { get; } #

Gets whether the segment is a bar (dark) or a space (light).

public Int32 Modules { get; } #

Gets the segment width in modules.