BarCode Class
Represents a control that can display a bar code.
public class BarCode : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.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
- System.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
- System.Windows.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
- System.Boolean:
true
if Caption has a non-null/empty value; otherwise,false
. The default value isfalse
.
HasSymbology
Gets a value indicating whether Symbology has a non-null value. This is a dependency property.
public bool HasSymbology { get; }
Property Value
- System.Boolean:
true
if Symbology has a non-null value; otherwise,false
. The default value isfalse
.
LogicalChildren
Gets an enumerator for logical child elements of this element.
protected override IEnumerator LogicalChildren { get; }
Property Value
- System.Collections.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 System.Windows.Automation.Peers.AutomationPeer object for this type.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- System.Windows.Automation.Peers.AutomationPeer:
The System.Windows.Automation.Peers.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
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()