In This Article

BarcodeEncodingRequest Class

Contains the data required to encode a barcode.

public class BarcodeEncodingRequest
Inheritance:
object object

Constructors

BarcodeEncodingRequest(string)

Contains the data required to encode a barcode.

public BarcodeEncodingRequest(string value)
Parameter Type Description
value string

The value to encode.

Properties

Background

The background brush.

public IBrush Background { get; set; }

Property Value

IBrush:

The default value is Avalonia.Media.Brushes.White.

Foreground

The foreground brush.

public IBrush Foreground { get; set; }

Property Value

IBrush:

The default value is Avalonia.Media.Brushes.Black.

ModuleShapeKind

The shape to use for rendering barcode modules.

public BarcodeShapeKind ModuleShapeKind { get; set; }

Property Value

BarcodeShapeKind:

The default value is Default.

PrimaryAccent

The primary accent brush used for customization, such as the outer border of finder patterns in QR Codes.

public IBrush? PrimaryAccent { get; set; }

Property Value

IBrush

Remarks

When not specified, the Foreground brush is used as a fallback.

SecondaryAccent

The secondary accent brush used for customization, such as the inner square of finder patterns in QR Codes.

public IBrush? SecondaryAccent { get; set; }

Property Value

IBrush

Remarks

When not specified, the Foreground brush is used as a fallback.

SupplementValue

The supplement value to encode for symbologies that support add-on supplements.

public string? SupplementValue { get; set; }

Property Value

string

Value

The value to encode.

public string Value { get; }

Property Value

string

ValueFontFamily

The font family to use for rendering the Value.

public FontFamily? ValueFontFamily { get; set; }

Property Value

FontFamily

ValueFontSize

The font size to use for rendering the Value.

public double ValueFontSize { get; set; }

Property Value

double

ValueForeground

The foreground brush for rendering the Value.

public IBrush? ValueForeground { get; set; }

Property Value

IBrush:

The default value is Avalonia.Media.Brushes.Black.

Remarks

If the value is null, the Foreground property value is used as a fallback.

Inherited Members

Extension Methods