void LoadBarcode() { barcode.BackgroundColor = UIColor.FromRGB(242 / 255.0f, 242 / 255.0f, 242 / 255.0f); barcode.Frame = frameRect; barcode.Text = (NSString)"1234-567-890"; barcode.Symbology = SFBarcodeSymbolType.SFBarcodeSymbolTypeCode11; SFCode11Settings settings = new SFCode11Settings(); settings.BarHeight = 80; settings.NarrowBarWidth = 1.5f; barcode.SymbologySettings = settings; this.AddSubview(barcode); }
void LoadBarcode() { barcode = new SFBarcode(); barcode.BackgroundColor = UIColor.FromRGB (242/255.0f, 242/255.0f, 242/255.0f); barcode.Frame = frameRect; barcode.Text = (NSString)"1234-567-890"; barcode.Symbology = SFBarcodeSymbolType.SFBarcodeSymbolTypeCode11; SFCode11Settings settings = new SFCode11Settings(); settings.BarHeight = 80; settings.NarrowBarWidth = 1.5f; barcode.SymbologySettings = settings; this.AddSubview(barcode); }