Example #1
0
 public TablixRow(TablixRow tablixRow)
 {
     TablixCells = new TablixCells(tablixRow.TablixCells);
     Name = tablixRow.Name;
     Style = tablixRow.Style;
     Tag = tablixRow.Tag;
 }
Example #2
0
 public TablixRow(TablixCells tablixCells, String name,
                  String style, String tag)
 {
     TablixCells = tablixCells;
     Name = name;
     Style = style;
     Tag = tag;
 }
Example #3
0
        private static TablixBody CreateTablixBody(string dataSetName)
        {
            var rectangle = new Rectangle();
            //rectangle.AddReportItem(ElementCell.Create(dataSetName));
            var tablixColumns = new TablixColumns(new TablixColumn(new Width(new Inch(1.05))));
            var tablixCells   = new TablixCells(new TablixCell(new CellContents(rectangle)));
            var tablixRows    = new TablixRows(new TablixRow(new Inch(0.85), tablixCells));

            return(new TablixBody(tablixColumns, tablixRows));
        }
Example #4
0
        private static TablixRow CreateThirdTablixRow()
        {
            var textRun = new TextRun {
                Value = CreateHyperLinkExpression(), MarkupType = MarkupType.HTML
            };
            var paragraph = new Paragraph(new TextRuns(textRun))
            {
                TextAlign = TextAlign.Center
            };
            var textbox = new Textbox(paragraph)
            {
                TextboxStyle = new TextboxStyle()
            };
            var tablixCells = new TablixCells(new TablixCell(new CellContents(textbox)));

            return(new TablixRow(new Inch(0.18), tablixCells));
        }
Example #5
0
        private static TablixRow CreateFourthTablixRow()
        {
            var textRun = new TextRun {
                Value = CreateRelativeAtomicMassExpression()
            };
            var paragraph = new Paragraph(new TextRuns(textRun))
            {
                TextAlign = TextAlign.Right
            };
            var textbox = new Textbox(paragraph)
            {
                TextboxStyle = new TextboxStyle()
            };
            var tablixCells = new TablixCells(new TablixCell(new CellContents(textbox)));

            return(new TablixRow(new Inch(0.15), tablixCells));
        }
Example #6
0
        private static TablixRow CreateFirstTablixRow()
        {
            var textRun = new TextRun
            {
                Value    = "=" + Expression.FieldsValue(ElementProperty.AtomicNumber),
                FontSize = new Point(12)
            };
            var paragraph = new Paragraph(new TextRuns(textRun))
            {
                TextAlign = TextAlign.Center
            };
            var textbox = new Textbox(paragraph)
            {
                TextboxStyle = new TextboxStyle()
            };
            var tablixCells = new TablixCells(new TablixCell(new CellContents(textbox)));

            return(new TablixRow(new Inch(0.2), tablixCells));
        }
Example #7
0
        private static TablixRow CreateSecondTablixRow()
        {
            var textRun = new TextRun
            {
                Value      = "=" + Expression.FieldsValue(ElementProperty.ChemicalSymbol),
                FontSize   = new Point(16),
                FontWeight = FontWeight.Bold,
                Color      = CreateTextColorExpressionForChemicalSymbol()
            };
            var paragraph = new Paragraph(new TextRuns(textRun))
            {
                TextAlign = TextAlign.Center
            };
            var textbox = new Textbox(paragraph)
            {
                TextboxStyle = new TextboxStyle()
            };
            var tablixCells = new TablixCells(new TablixCell(new CellContents(textbox)));

            return(new TablixRow(new Inch(0.28), tablixCells));
        }
Example #8
0
 public TablixRow(TablixCells tablixCells, String name,
                  String style)
     : this(tablixCells, name, style, null)
 {
 }
Example #9
0
 public TablixRow(TablixCells tablixCells)
     : this(tablixCells, null)
 {
 }