Class SfBarcode
Inheritance
System.Object
SfBarcode
Namespace: Syncfusion.Windows.Forms.Barcode
Assembly: Syncfusion.SfBarcode.Windows.dll
Syntax
public class SfBarcode : UserControl
Constructors
SfBarcode()
Declaration
public SfBarcode()
Properties
DarkBarColor
Declaration
public Color DarkBarColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DisplayText
Gets or sets whether to display original text.
Declaration
public bool DisplayText { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is True. |
LightBarColor
Declaration
public Color LightBarColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Symbology
Gets or sets the bar code symbol type.
Declaration
public BarcodeSymbolType Symbology { get; set; }
Property Value
Type | Description |
---|---|
BarcodeSymbolType | The default value is Code39. |
SymbologySettings
Gets or sets the Settings for the applied bar code type.
Declaration
public Settings SymbologySettings { get; set; }
Property Value
Type |
---|
Settings |
Text
Gets or sets the text to encode.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TextAlignment
Declaration
public BarcodeTextAlignment TextAlignment { get; set; }
Property Value
Type |
---|
BarcodeTextAlignment |
TextColor
Declaration
public Color TextColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
TextGapHeight
Declaration
public float TextGapHeight { get; set; }
Property Value
Type |
---|
System.Single |
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e |
ToImage()
Exports the barcode as image.
Declaration
public Image ToImage()
Returns
Type | Description |
---|---|
System.Drawing.Image | Image |
ToImage(SizeF)
Exports the barcode as image.
Declaration
public Image ToImage(SizeF size)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.SizeF | size |
Returns
Type | Description |
---|---|
System.Drawing.Image | Image |