Class RadBarcodeView
A control that generates and displays various types of barcodes using configurable encoding methods (symbologies) and text values.
Inherited Members
Namespace: Telerik.WinControls.UI.Barcode
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Data Controls")]
public class RadBarcodeView : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadBarcodeView()
Properties
AutoSize
This property is not relevant for this class.
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
BackColor
Gets or sets the background color of the control.
Declaration
public override Color BackColor { get; set; }
Property Value
System.Drawing.Color
|
Overrides
BarcodeElement
Gets the barcode element that is the core visual component of this control.
Declaration
public RadBarcodeViewElement BarcodeElement { get; }
Property Value
RadBarcodeViewElement
|
DefaultSize
Gets the default size of the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
ForeColor
Gets or sets the foreground color of the control.
Declaration
public override Color ForeColor { get; set; }
Property Value
System.Drawing.Color
|
Overrides
Symbology
Gets or sets the ISymbology that will be used to encode the value into a visual barcode representation.
Declaration
public ISymbology Symbology { get; set; }
Property Value
ISymbology
|
Value
Gets or sets the value that will be encoded and converted into a barcode representation.
Declaration
public string Value { get; set; }
Property Value
System.String
|
Methods
CreateBarcodeElement()
Creates the barcode element that will serve as the core visual component of this control.
Declaration
protected virtual RadBarcodeViewElement CreateBarcodeElement()
Returns
RadBarcodeViewElement
A new instance of RadBarcodeViewElement. |
CreateChildItems(RadElement)
Creates child items for the control.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
The parent element. |
Overrides
ExportToImage()
Exports the barcode with the current dimensions of the control.
Declaration
public Image ExportToImage()
Returns
System.Drawing.Image
An image of the barcode. |
ExportToImage(Int32, Int32)
Layouts the barcode using the provided dimensions and exports it to an image.
Declaration
public Image ExportToImage(int width, int height)
Parameters
System.Int32
width
The width of the exported image. |
System.Int32
height
The height of the exported image. |
Returns
System.Drawing.Image
An image of the barcode. |
ExportToImage(Stream, Size)
Layouts the barcode using the provided size and exports it to the specified stream.
Declaration
public void ExportToImage(Stream stream, Size size)
Parameters
System.IO.Stream
stream
The stream to export the barcode to. |
System.Drawing.Size
size
The size of the barcode. |
ExportToImage(Stream, Size, ImageFormat)
Layouts the barcode using the provided size and exports it to the specified stream in the specified image format.
Declaration
public void ExportToImage(Stream stream, Size size, ImageFormat imageFormat)
Parameters
System.IO.Stream
stream
The stream to export the barcode to. |
System.Drawing.Size
size
The size of the barcode. |
System.Drawing.Imaging.ImageFormat
imageFormat
The format of the exported image. |
ExportToImage(String, Size)
Layouts the barcode using the provided size and exports it to the specified file location.
Declaration
public void ExportToImage(string filePath, Size size)
Parameters
System.String
filePath
The location of the file where to export the barcode. |
System.Drawing.Size
size
The size of the barcode. |
ExportToImage(String, Size, ImageFormat)
Layouts the barcode using the provided size and exports it to the specified file location in the specified image format.
Declaration
public void ExportToImage(string filePath, Size size, ImageFormat imageFormat)
Parameters
System.String
filePath
The location of the file where to export the barcode. |
System.Drawing.Size
size
The size of the barcode. |
System.Drawing.Imaging.ImageFormat
imageFormat
The format of the exported image. |
Events
SymbologyChanged
Occurs after the symbology of the barcode is changed.
Declaration
public event EventHandler SymbologyChanged
Event Type
System.EventHandler
|
SymbologyChanging
Occurs before the symbology of the barcode is changed.
Declaration
public event BarcodeSymbologyChangingEventHandler SymbologyChanging
Event Type
BarcodeSymbologyChangingEventHandler
|
ValueChanged
Occurs after the value of the barcode is changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.EventHandler
|
ValueChanging
Occurs before the value of the barcode is changed.
Declaration
public event BarcodeValueChangingEventHandler ValueChanging
Event Type
BarcodeValueChangingEventHandler
|