skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class Barcode

Represents a barcode report item.

Inheritance
System.Object
ReportObject
ReportItemBase
ReportItem
Barcode
Inherited Members
ReportItem.Size
ReportItem.Location
ReportItem.Anchoring
ReportItem.Anchor
ReportItem.Docking
ReportItem.Dock
ReportItem.Bounds
ReportItem.Left
ReportItem.Right
ReportItem.Top
ReportItem.Bottom
ReportItem.Width
ReportItem.Height
ReportItemBase.Dispose()
ReportItemBase.Dispose(Boolean)
ReportItemBase.ToString()
ReportItemBase.Contains(ReportItemBase)
ReportItemBase.GetEventHandlers(EventHandler)
ReportItemBase.OnItemValidate(ReportItemBase)
ReportItemBase.ClearGlobalDependencies()
ReportItemBase.Container
ReportItemBase.DesignMode
ReportItemBase.Site
ReportItemBase.Name
ReportItemBase.ItemDataBindingMethodName
ReportItemBase.ItemDataBoundMethodName
ReportItemBase.Visible
ReportItemBase.StyleName
ReportItemBase.Style
ReportItemBase.Items
ReportItemBase.Parent
ReportItemBase.Report
ReportItemBase.ConditionalFormatting
ReportItemBase.Bookmark
ReportItemBase.BookmarkId
ReportItemBase.DocumentMapText
ReportItemBase.TocText
ReportItemBase.Action
ReportItemBase.Bindings
ReportItemBase.ToolTip
ReportItemBase.AccessibleDescription
ReportItemBase.AccessibleRole
ReportItemBase.AIDescription
ReportItemBase.ItemDataBinding
ReportItemBase.ItemDataBound
ReportItemBase.Disposed
ReportObject.ToString(String[])
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll

Syntax

public class Barcode : ReportItem, IReportItem, IComponent, IDisposable, IToggleVisibilityTarget, IActionTarget, IDesignTimeStyleEditable, INamedObject, IDesignTimeSelectable, ISupportsRotation
Examples

This example illustrates how to set the Barcode properties.

var encoder = new Telerik.Reporting.Barcodes.Code128AEncoder();

// Set any specific encoder settings...
encoder.ShowText = false; // The default value is true.

this.barcode1.Encoder = encoder;
this.barcode1.Angle = 90;
this.barcode1.BarAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left;
this.barcode1.Checksum = true;
this.barcode1.Module = Telerik.Reporting.Drawing.Unit.Point(3);
this.barcode1.Stretch = false;
this.barcode1.Value = "1234567890";
Dim encoder = New Telerik.Reporting.Barcodes.Code128AEncoder()

' Set any specific encoder settings...
encoder.ShowText = False 'The default value is True

Me.barcode1.Encoder = encoder
Me.barcode1.Angle = 90
Me.barcode1.BarAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left
Me.barcode1.Checksum = True
Me.barcode1.Module = Telerik.Reporting.Drawing.Unit.Point(3)
Me.barcode1.Stretch = False
Me.barcode1.Value = "1234567890"

Constructors

Barcode()

Declaration
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
public double Angle { get; set; }
Property Value
System.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
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
public bool Checksum { get; set; }
Property Value
System.Boolean

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

DefaultSize

Declaration
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
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
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
[Obsolete("The Telerik.Reporting.Barcode.ShowText property is now obsolete. Please use the ShowText property of the respective Telerik.Reporting.Barcodes.Encoder1D instance.")]
public bool ShowText { get; set; }
Property Value
System.Boolean

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
public bool Stretch { get; set; }
Property Value
System.Boolean

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
[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
public string Value { get; set; }
Property Value
System.String

A System.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.

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.