Class RadBarcodeElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadBarcodeElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadBarcodeElement()
Declaration
public RadBarcodeElement()
Fields
previousDpi
Declaration
protected SizeF previousDpi
Field Value
System.Drawing.SizeF
|
Properties
ElementFactory
Gets or sets the element factory that is used to create the elements of the displayed barcode.
Declaration
public IElementFactory ElementFactory { get; set; }
Property Value
IElementFactory
|
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
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.Drawing.SizeF
scaleFactor
|
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. |
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
MeasureSymbology(SizeF)
Declaration
protected virtual SizeF MeasureSymbology(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnSymbologyChanged(EventArgs)
Raises the SymbologyChanged event.
Declaration
protected virtual void OnSymbologyChanged(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs instance containing the event data. |
OnSymbologyChanging(BarcodeSymbologyChangingEventArgs)
Raises the SymbologyChanging event.
Declaration
protected virtual void OnSymbologyChanging(BarcodeSymbologyChangingEventArgs e)
Parameters
BarcodeSymbologyChangingEventArgs
e
The BarcodeSymbologyChangingEventArgs instance containing the event data. |
OnSymbologyPropertyChanged(Object, PropertyChangedEventArgs)
Called when a property of the symbology changes. Suitable for performing necessary updates based on the changes.
Declaration
protected virtual void OnSymbologyPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.Object
sender
|
System.ComponentModel.PropertyChangedEventArgs
e
|
OnValueChanged(EventArgs)
Raises the ValueChanged event.
Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs instance containing the event data. |
OnValueChanging(BarcodeValueChangingEventArgs)
Raises the ValueChanging event.
Declaration
protected virtual void OnValueChanging(BarcodeValueChangingEventArgs e)
Parameters
BarcodeValueChangingEventArgs
e
The BarcodeValueChangingEventArgs instance containing the event data. |
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
PaintElements(IGraphics, ISymbology, IElementFactory)
Declaration
protected virtual void PaintElements(IGraphics graphics, ISymbology symbology, IElementFactory elementFactory)
Parameters
IGraphics
graphics
|
ISymbology
symbology
|
IElementFactory
elementFactory
|
PaintElements(IGraphics, ISymbology, IElementFactory, Size)
Declaration
protected virtual void PaintElements(IGraphics graphics, ISymbology symbology, IElementFactory elementFactory, Size size)
Parameters
IGraphics
graphics
|
ISymbology
symbology
|
IElementFactory
elementFactory
|
System.Drawing.Size
size
|
Update()
Updates the layout and invalidates the barcode.
Declaration
protected virtual void Update()
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
|