Blazorise Barcode API
Explore the Blazorise Barcode API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Barcode documentation.
API
Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
BackgroundColor |
Color used as background color. |
string | "#ffffff" |
ForegroundColor |
Color used as foreground color. |
string | "#000000" |
PaddingBottom |
Defines the bottom padding inside the generated barcode image. |
int? | null |
PaddingEnd |
Defines the end padding inside the generated barcode image. |
int? | null |
PaddingStart |
Defines the start padding inside the generated barcode image. |
int? | null |
PaddingTop |
Defines the top padding inside the generated barcode image. |
int? | null |
RenderMode |
Defines how the barcode will be rendered. Possible values: |
BarcodeRenderMode | BarcodeRenderMode.Canvas |
Rotation |
Defines the barcode rotation. Possible values: |
BarcodeRotation | BarcodeRotation.None |
Scale |
Defines the barcode scale. |
int | 2 |
ShowValue |
Defines whether the encoded value should be shown as human-readable text. |
bool | false |
SymbolHeight |
Defines the requested barcode symbol height. The provider preserves valid module sizing, so the rendered symbol can be smaller than this value. |
int? | null |
SymbolWidth |
Defines the requested barcode symbol width. The provider preserves valid module sizing, so the rendered symbol can be smaller than this value. |
int? | null |
Type |
The barcode symbology. Possible values: |
BarcodeType | BarcodeType.Code128 |
Value |
Value used for barcode generation. |
string | |
ValueAlignment |
Defines the alignment of the human-readable value text. Possible values: |
BarcodeValueAlignment | BarcodeValueAlignment.Center |