In This Article

BarCode Class

Represents a control that can display a bar code.

public class BarCode : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

BarCode()

Initializes an instance of the class.

public BarCode()

Properties

Caption

The caption to display above the bar code.

[Localizability(LocalizationCategory.Title)]
public object? Caption { get; set; }

Property Value

object

CornerRadius

The corner radius of the border.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

HasCaption

Indicates whether Caption has a non-null/empty value.

public bool HasCaption { get; }

Property Value

bool

HasSymbology

Indicates whether Symbology has a non-null value.

public bool HasSymbology { get; }

Property Value

bool

LogicalChildren

Gets an enumerator for logical child elements of this element.

protected override IEnumerator? LogicalChildren { get; }

Property Value

IEnumerator:

An enumerator for logical child elements of this element.

Symbology

The BarCodeSymbology used to render the core bar code.

public BarCodeSymbology? Symbology { get; set; }

Property Value

BarCodeSymbology

Methods

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

Fields

CaptionProperty

Defines the Caption property.

public static readonly DependencyProperty CaptionProperty

CornerRadiusProperty

Defines the CornerRadius property.

public static readonly DependencyProperty CornerRadiusProperty

HasCaptionProperty

Defines the HasCaption property.

public static readonly DependencyProperty HasCaptionProperty

HasSymbologyProperty

Defines the HasSymbology property.

public static readonly DependencyProperty HasSymbologyProperty

SymbologyProperty

Defines the Symbology property.

public static readonly DependencyProperty SymbologyProperty

Extension Methods