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

Remarks

For detailed documentation on this control's features and how to use them, please see the Bar Code-related series of documentation topics.

Constructors

BarCode()

Initializes a new instance of the BarCode class.

public BarCode()

Properties

Caption

Gets or sets the caption to display above the bar code.

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

Property Value

object:

The caption to display above the bar code.

CornerRadius

Gets or sets the corner radius of the border.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius:

The corner radius of the border.

HasCaption

Gets a value indicating whether Caption has a non-null/empty value. This is a dependency property.

public bool HasCaption { get; }

Property Value

bool:

true if Caption has a non-null/empty value; otherwise, false. The default value is false.

HasSymbology

Gets a value indicating whether Symbology has a non-null value. This is a dependency property.

public bool HasSymbology { get; }

Property Value

bool:

true if Symbology has a non-null value; otherwise, false. The default value is false.

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

Gets or sets the BarCodeSymbology used to render the core bar code.

public BarCodeSymbology Symbology { get; set; }

Property Value

BarCodeSymbology:

The BarCodeSymbology used to render the core bar code.

Methods

OnCreateAutomationPeer()

Creates and returns an AutomationPeer object for this type.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The AutomationPeer that was created.

Fields

CaptionProperty

Identifies the Caption dependency property. This field is read-only.

public static readonly DependencyProperty CaptionProperty

CornerRadiusProperty

Identifies the CornerRadius dependency property. This field is read-only.

public static readonly DependencyProperty CornerRadiusProperty

HasCaptionProperty

Identifies the read-only HasCaption dependency property. This field is read-only.

public static readonly DependencyProperty HasCaptionProperty

HasSymbologyProperty

Identifies the read-only HasSymbology dependency property. This field is read-only.

public static readonly DependencyProperty HasSymbologyProperty

SymbologyProperty

Identifies the Symbology dependency property. This field is read-only.

public static readonly DependencyProperty SymbologyProperty