Class RadBarcodeView
Generates and displays a barcode using a provided encoding method (symbology) and a value.
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()
Declaration
public RadBarcodeView()
Properties
AutoSize
AutoSize is irrelevant for RadBarcodeView and should always be false.
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
BackColor
Declaration
public override Color BackColor { get; set; }
Property Value
System.Drawing.Color
|
Overrides
BarcodeElement
Gets the barcode element of this control.
Declaration
public RadBarcodeViewElement BarcodeElement { get; }
Property Value
RadBarcodeViewElement
|
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
ForeColor
Declaration
public override Color ForeColor { get; set; }
Property Value
System.Drawing.Color
|
Overrides
Symbology
Gets or sets the symbology that will be used to convert the value of this element into a visual barcode representation.
Declaration
public ISymbology Symbology { get; set; }
Property Value
ISymbology
|
Value
Gets or sets the value that will be converted into a barcode.
Declaration
public string Value { get; set; }
Property Value
System.String
|
Methods
CreateBarcodeElement()
Declaration
protected virtual RadBarcodeViewElement CreateBarcodeElement()
Returns
RadBarcodeViewElement
|
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
ExportToImage()
Exports the barcode with the current dimentions 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 dimentions 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
|