Class
Barcode

Represents a barcode report item.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[ToolboxBitmap(typeof(Barcode), "Resources.Barcode.bmp")]
public class Barcode : ReportItem, IToggleVisibilityTarget, IActionTarget

Inheritance: objectReportObjectReportItemBaseReportItemBarcode

Implements: IActionTargetIToggleVisibilityTarget

Inherited Members ReportItem.SizeReportItem.LocationReportItem.AnchoringReportItem.DockingReportItem.BoundsReportItem.LeftReportItem.RightReportItem.TopReportItem.BottomReportItem.WidthReportItem.HeightReportItemBase.Dispose()ReportItemBase.Dispose(bool)ReportItemBase.ToString()ReportItemBase.Contains(ReportItemBase)ReportItemBase.GetEventHandlers(EventHandler)ReportItemBase.OnItemValidate(ReportItemBase)ReportItemBase.ClearGlobalDependencies()ReportItemBase.ContainerReportItemBase.DesignModeReportItemBase.SiteReportItemBase.NameReportItemBase.ItemDataBindingMethodNameReportItemBase.ItemDataBoundMethodNameReportItemBase.VisibleReportItemBase.StyleNameReportItemBase.StyleReportItemBase.ItemsReportItemBase.ParentReportItemBase.ReportReportItemBase.ConditionalFormattingReportItemBase.BookmarkReportItemBase.BookmarkIdReportItemBase.DocumentMapTextReportItemBase.TocTextReportItemBase.ActionReportItemBase.BindingsReportItemBase.ToolTipReportItemBase.AccessibleDescriptionReportItemBase.AccessibleRoleReportItemBase.AIDescriptionReportItemBase.ItemDataBindingReportItemBase.ItemDataBoundReportItemBase.DisposedReportObject.ToString(string[])

Constructors

Barcode()

Internal use only

Declaration

cs-api-definition
public Barcode()

Properties

Angle

Gets or sets a value indicating the angle of rotation of the bar code inside the report item, specified in degrees.

Declaration

cs-api-definition
public double Angle { get; set; }

Property Value

double

A double value indicating the angle of rotation in degrees.

BarAlign

Gets or sets the horizontal alignment of the barcode in the report item.

Declaration

cs-api-definition
public HorizontalAlign BarAlign { get; set; }

Property Value

HorizontalAlign

One of the HorizontalAlign values. The default value is HorizontalAlign.Center.

Checksum

Gets or sets a value indicating whether the barcode should contain a checksum for validation purposes during the scanning process or not.

Declaration

cs-api-definition
public bool Checksum { get; set; }

Property Value

bool

true if the barcode should contain a checksum for validation purposes during the scanning process, otherwise false.

DefaultSize

Internal use only

Declaration

cs-api-definition
protected override SizeU DefaultSize { get; }

Property Value

SizeU

Overrides ReportItem.DefaultSize

Encoder

Gets or sets the current encoder used to encode the Value property as series of bars and spaces.

Declaration

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public Encoder Encoder { get; set; }

Property Value

Encoder

Module

Gets or sets a Unit representing the width of of the narrowest bar of the barcode.

Declaration

cs-api-definition
public Unit Module { get; set; }

Property Value

Unit

A Unit value representing the width of the narrowest bar of the barcode.

ShowText

Gets or sets a value indicating whether the barcode should display a human-readable text representation of the encoded value.

Declaration

cs-api-definition
[Obsolete("The Telerik.Reporting.Barcode.ShowText property is now obsolete. Please use the ShowText property of the respective Telerik.Reporting.Barcodes.Encoder1D instance.")]
[Browsable(false)]
public bool ShowText { get; set; }

Property Value

bool

true if the barcode should display text, otherwise false.

Stretch

Gets or sets a value indicating whether to stretch the barcode to fill the entire area of the report item item or not.

Declaration

cs-api-definition
public bool Stretch { get; set; }

Property Value

bool

true if the barcode should be stretched, otherwise false.

Symbology

Gets or sets a value indicating the current symbology used to encode the Value property as series of bars and spaces.

Declaration

cs-api-definition
[Browsable(false)]
[Obsolete("The Telerik.Reporting.Barcode.Symbology property is now obsolete. Use Telerik.Reporting.Barcode.Encoder property instead.")]
public Barcode.SymbologyType Symbology { get; set; }

Property Value

Barcode.SymbologyType

A Barcode.SymbologyType enumerated value indicating the symbology associated with the current barcode.

Value

Gets or sets the current value to be encoded in the barcode.

Declaration

cs-api-definition
public string Value { get; set; }

Property Value

string

A string that starts with the symbol "=" is interpreted as an expression to calculate the value of the current barcode, otherwise the value is interpreted as a literal string.