Class RadBarcodeViewElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Barcode
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadBarcodeViewElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadBarcodeViewElement()
Declaration
public RadBarcodeViewElement()
Fields
previousDpi
Declaration
protected SizeF previousDpi
Field Value
System.
|
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
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
Value
Gets or sets the value that will be converted into a barcode.
Declaration
public string Value { get; set; }
Property Value
System.
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.
|
Overrides
ExportToImage()
Exports the barcode with the current dimentions of the control.
Declaration
public Image ExportToImage()
Returns
System. 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. The width of the exported image. |
System. The height of the exported image. |
Returns
System. 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. The stream to export the barcode to. |
System. 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. The stream to export the barcode to. |
System. The size of the barcode. |
System. 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. The location of the file where to export the barcode. |
System. 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. The location of the file where to export the barcode. |
System. The size of the barcode. |
System. The format of the exported image. |
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
MeasureSymbology(SizeF)
Declaration
protected virtual SizeF MeasureSymbology(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnSymbologyChanged(EventArgs)
Raises the Symbology
Declaration
protected virtual void OnSymbologyChanged(EventArgs e)
Parameters
System. The System. |
OnSymbologyChanging(BarcodeSymbologyChangingEventArgs)
Raises the Symbology
Declaration
protected virtual void OnSymbologyChanging(BarcodeSymbologyChangingEventArgs e)
Parameters
Barcode The Barcode |
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.
|
System.
|
OnValueChanged(EventArgs)
Raises the Value
Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
System. The System. |
OnValueChanging(BarcodeValueChangingEventArgs)
Raises the Value
Declaration
protected virtual void OnValueChanging(BarcodeValueChangingEventArgs e)
Parameters
Barcode The Barcode |
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.
|
System.
|
Overrides
PaintElements(IGraphics, ISymbology, IElementFactory)
Declaration
protected virtual void PaintElements(IGraphics graphics, ISymbology symbology, IElementFactory elementFactory)
Parameters
IGraphics
graphics
|
ISymbology
symbology
|
IElement
|
PaintElements(IGraphics, ISymbology, IElementFactory, Size)
Declaration
protected virtual void PaintElements(IGraphics graphics, ISymbology symbology, IElementFactory elementFactory, Size size)
Parameters
IGraphics
graphics
|
ISymbology
symbology
|
IElement
|
System.
|
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.
|
SymbologyChanging
Occurs before the symbology of the barcode is changed.
Declaration
public event BarcodeSymbologyChangingEventHandler SymbologyChanging
Event Type
ValueChanged
Occurs after the value of the barcode is changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.
|
ValueChanging
Occurs before the value of the barcode is changed.
Declaration
public event BarcodeValueChangingEventHandler ValueChanging