Exemplo n.º 1
0
        protected override NWidget CreateExampleContent()
        {
            // Create a linear barcode widget
            m_Barcode                     = new NLinearBarcode();
            m_Barcode.Symbology           = ENLinearBarcodeSymbology.Codabar;
            m_Barcode.Text                = "A40156B";
            m_Barcode.HorizontalPlacement = ENHorizontalPlacement.Center;
            m_Barcode.VerticalPlacement   = ENVerticalPlacement.Center;

            return(m_Barcode);
        }
        protected override NWidget CreateExampleContent()
        {
            // Create a linear barcode widget
            m_Barcode                     = new NLinearBarcode();
            m_Barcode.Symbology           = ENLinearBarcodeSymbology.Interleaved2of5;
            m_Barcode.Text                = "01234567890";
            m_Barcode.HorizontalPlacement = ENHorizontalPlacement.Center;
            m_Barcode.VerticalPlacement   = ENVerticalPlacement.Center;

            return(m_Barcode);
        }
Exemplo n.º 3
0
        protected override NWidget CreateExampleContent()
        {
            // Create a linear barcode widget
            m_Barcode                     = new NLinearBarcode();
            m_Barcode.Symbology           = ENLinearBarcodeSymbology.UPC_Supplemental_5Digit;
            m_Barcode.Text                = "12345";
            m_Barcode.HorizontalPlacement = ENHorizontalPlacement.Center;
            m_Barcode.VerticalPlacement   = ENVerticalPlacement.Center;

            return(m_Barcode);
        }
        protected override void PopulateRichText()
        {
            NDocumentBlock documentBlock = m_RichText.Content;

            documentBlock.Layout = ENTextLayout.Print;

            NSection section = new NSection();

            documentBlock.Sections.Add(section);

            section.Blocks.Add(GetDescriptionBlock("Barcode Widget Inlines",
                                                   "Nevron Open Vision lets you easily insert barcodes in text documents as widget inlines.", 1));

            // Create a table
            NTable table = new NTable(2, 2);

            section.Blocks.Add(table);

            // Create a linear barcode
            NLinearBarcode linearBarcode = new NLinearBarcode(ENLinearBarcodeSymbology.EAN13, "0123456789012");
            NWidgetInline  widgetInline  = new NWidgetInline(linearBarcode);

            // Create a paragraph to host the linear barcode widget inline
            NTableCell cell = table.Rows[0].Cells[0];

            cell.HorizontalAlignment = ENAlign.Center;
            NParagraph paragraph = (NParagraph)cell.Blocks[0];

            paragraph.Inlines.Add(widgetInline);

            // Create a paragraph to the right with some text
            cell      = table.Rows[0].Cells[1];
            paragraph = (NParagraph)cell.Blocks[0];
            paragraph.Inlines.Add(new NTextInline("The linear barcode to the left uses the EAN13 symbology."));

            // Create a QR code widget inline
            NMatrixBarcode qrCode = new NMatrixBarcode(ENMatrixBarcodeSymbology.QrCode, "https://www.nevron.com");

            widgetInline = new NWidgetInline(qrCode);

            // Create a paragraph to host the QR code widget inline
            cell = table.Rows[1].Cells[0];
            cell.HorizontalAlignment = ENAlign.Center;
            paragraph = (NParagraph)cell.Blocks[0];
            paragraph.Inlines.Add(widgetInline);

            // Create a paragraph to the right with some text
            cell      = table.Rows[1].Cells[1];
            paragraph = (NParagraph)cell.Blocks[0];
            paragraph.Inlines.Add(new NTextInline("The QR code to the left contains a link to "));
            paragraph.Inlines.Add(new NHyperlinkInline("https://www.nevron.com", "https://www.nevron.com"));
            paragraph.Inlines.Add(new NTextInline("."));
        }