Class SFBarcode
Represents a class used to encode the text as bar code and render in view.
Inheritance
Namespace: Syncfusion.SfBarcode.iOS
Assembly: Syncfusion.SfBarcode.iOS.dll
Syntax
public class SFBarcode : UIView
Constructors
SFBarcode()
Initializes the new instance of SfBracode class.
Declaration
public SFBarcode()
Properties
ClassHandle
gets the class handle
Declaration
public override IntPtr ClassHandle { get; }
Property Value
Type |
---|
System.IntPtr |
DarkBarColor
Gets or sets the color for the darker area of bar code.
Declaration
public UIColor DarkBarColor { get; set; }
Property Value
Type | Description |
---|---|
UIKit.UIColor | The default brush is Black. |
Frame
sets the frame
Declaration
public override CGRect Frame { set; }
Property Value
Type |
---|
CoreGraphics.CGRect |
LightBarColor
Gets or sets the color for the lighter area of bar code.
Declaration
public UIColor LightBarColor { get; set; }
Property Value
Type | Description |
---|---|
UIKit.UIColor | The default brush is White. |
ShowText
Gets or sets whether to display the text.
Declaration
public bool ShowText { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is True. |
Symbology
Gets or sets the bar code symbol type.
Declaration
public SFBarcodeSymbolType Symbology { get; set; }
Property Value
Type | Description |
---|---|
SFBarcodeSymbolType | The default value is Code39. |
SymbologySettings
Gets or sets the Settings for the applied bar code type.
Declaration
public SFBarcodeSettings SymbologySettings { get; set; }
Property Value
Type |
---|
SFBarcodeSettings |
Text
Gets or sets the text to encode.
Declaration
public NSString Text { get; set; }
Property Value
Type |
---|
Foundation.NSString |
TextAlignment
Gets or sets the horizontal alignment of the text.
Declaration
public SFBarcodeTextAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
SFBarcodeTextAlignment | The default value is Center. |
TextColor
Gets or sets the color of the Text.
Declaration
public UIColor TextColor { get; set; }
Property Value
Type |
---|
UIKit.UIColor |
TextFont
Gets or sets the font of the Text.
Declaration
public UIFont TextFont { get; set; }
Property Value
Type |
---|
UIKit.UIFont |
TextGapHeight
Gets or sets the height between bar code and the text.
Declaration
public nfloat TextGapHeight { get; set; }
Property Value
Type | Description |
---|---|
System.nfloat | The default value is 0. |
TextLocation
Gets of sets the vertical alignment of the text.
Declaration
public SFBarcodeTextLocation TextLocation { get; set; }
Property Value
Type | Description |
---|---|
SFBarcodeTextLocation | The default value is Bottom. |
Methods
Draw(CGRect)
Darw the barcode in view.
Declaration
public override void Draw(CGRect rect)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGRect | rect |