Exemplo n.º 1
0
        public static Vector2 DrawParsedString(this SpriteBatch spriteBatch, SpriteFont font, StringPart text, Vector2 position, Color colour, float rotation, Vector2 origin, Vector2 scale, int wrapWidth, Justification justification)
        {
            if (wrapWidth <= 0)
                throw new ArgumentOutOfRangeException("wrapWidth", "wrapWidth must be greater than 0.");

            return DrawParsedString(spriteBatch, font, text, position, colour, rotation, origin, scale, wrapWidth, justification, true);
        }
Exemplo n.º 2
0
        public void Draw(long score, Vector2 location, Color color, Justification justify)
        {
            int place = 0;

            if (justify == Justification.Left)
            {
                location.X -= 17f;
                long s = score;
                if (s == 0)
                    location.X += 17f;
                else
                    while (s > 0)
                    {
                        s /= 10;
                        location.X += 17f;
                    }
            }

            while (true)
            {
                long digit = score % 10;
                score = score / 10;

                spriteBatch.Draw(spritesTexture, location + new Vector2((float)place * -17f, 0f),
                    new Rectangle((int)digit * 16, 224, 16, 32), color);

                place++;
                if (score <= 0)
                    return;
            }
        }
        private static ParagraphProperties GetParagraphProperties(Model.Paragraph paragraph)
        {
            ParagraphProperties paraProps = new ParagraphProperties();

            SpacingBetweenLines paraSpacing = new SpacingBetweenLines()
            {
                Before = Utilities.GetDxaFromPoints(paragraph.SpacingBefore),
                After = Utilities.GetDxaFromPoints(paragraph.SpacingAfter),
                LineRule = LineSpacingRuleValues.Auto,
                //If the value of the lineRule attribute is auto, then the value of the line attribute shall be interpreted as 240ths of a line
                Line = (paragraph.Leading * 240).ToString()
            };

            Justification justification = new Justification();
            switch (paragraph.Justification)
            {
                case DocGen.ObjectModel.Justification.Left:
                    justification.Val = JustificationValues.Left;
                    break;
                case DocGen.ObjectModel.Justification.Center:
                    justification.Val = JustificationValues.Center;
                    break;
                case DocGen.ObjectModel.Justification.Right:
                    justification.Val = JustificationValues.Right;
                    break;
                case DocGen.ObjectModel.Justification.Justified:
                    justification.Val = JustificationValues.Both;
                    break;
            }

            paraProps.Append(justification);
            paraProps.Append(paraSpacing);

            return paraProps;
        }
Exemplo n.º 4
0
		public TextWidget(string text, double x = 0, double y = 0, double pointSize = 12, Justification justification = Justification.Left, RGBA_Bytes textColor = new RGBA_Bytes(), bool ellipsisIfClipped = true, bool underline = false, RGBA_Bytes backgroundColor = new RGBA_Bytes())
		{
			pointSize *= GlobalPointSizeScaleRatio;
			Selectable = false;
			DoubleBuffer = DoubleBufferDefault;
			AutoExpandBoundsToText = false;
			EllipsisIfClipped = ellipsisIfClipped;
			OriginRelativeParent = new Vector2(x, y);
			this.textColor = textColor;
			if (this.textColor.Alpha0To255 == 0)
			{
				// we assume it is the default if alpha 0.  Also there is no reason to make a text color of this as it will draw nothing.
				this.textColor = RGBA_Bytes.Black;
			}
			if (backgroundColor.Alpha0To255 != 0)
			{
				BackgroundColor = backgroundColor;
			}

			base.Text = text;
			StyledTypeFace typeFaceStyle = new StyledTypeFace(LiberationSansFont.Instance, pointSize, underline);
			printer = new TypeFacePrinter(text, typeFaceStyle, justification: justification);

			LocalBounds = printer.LocalBounds;

			MinimumSize = new Vector2(LocalBounds.Width, LocalBounds.Height);
		}
Exemplo n.º 5
0
        public void Draw(long score, Vector2 loc, Color color, Justification justify)
        {
            var place = 0;

            if (justify == Justification.Left)
            {
                loc.X -= 17f;
                var s = score;
                if (s == 0)
                {
                    loc.X += 17f;
                }
                else
                {
                    while (s > 0)
                    {
                        s /= 10;
                        loc.X += 17f;
                    }
                }
            }

            while (true)
            {
                var digit = score % 10;
                score = score / 10;

                _spriteBatch.Draw(_spritesTex, loc + new Vector2(place * -17f, 0f),
                    new Rectangle((int)digit * 16, 224, 16, 32), color);
                place++;

                if (score <= 0)
                    return;
            }
        }
Exemplo n.º 6
0
		public TypeFacePrinter(String text, StyledTypeFace typeFaceStyle, Vector2 origin = new Vector2(), Justification justification = Justification.Left, Baseline baseline = Baseline.Text)
		{
			this.TypeFaceStyle = typeFaceStyle;
			this.text = text;
			this.Justification = justification;
			this.Origin = origin;
			this.Baseline = baseline;
		}
Exemplo n.º 7
0
 public Label(Vector2 pos, Vector2 size, String text, Justification just, IGUIManager manager)
     : base(pos, size, 1, manager)
 {
     position = pos;
     this.size = size;
     this.text = text;
     guiManager = manager;
     this.just = just;
     manager.AddGui(this);
 }
Exemplo n.º 8
0
			public WrappingTextWidget(string text, double pointSize = 12, Justification justification = Justification.Left, RGBA_Bytes textColor = new RGBA_Bytes(), bool ellipsisIfClipped = true, bool underline = false, RGBA_Bytes backgroundColor = new RGBA_Bytes())
			{
				unwrappedMessage = text;
				messageContainer = new TextWidget(text, 0, 0, pointSize, justification, textColor, ellipsisIfClipped, underline);
				this.BackgroundColor = backgroundColor;
				messageContainer.AutoExpandBoundsToText = true;
				messageContainer.HAnchor = HAnchor.ParentLeft;
				messageContainer.VAnchor = VAnchor.ParentBottom;
				this.HAnchor = HAnchor.ParentLeftRight;
				this.VAnchor = VAnchor.FitToChildren;

				AddChild(messageContainer);
			}
Exemplo n.º 9
0
		public WrappedTextWidget(string text, double startingWidth,
			double pointSize = 12, Justification justification = Justification.Left,
			RGBA_Bytes textColor = new RGBA_Bytes(), bool ellipsisIfClipped = true, bool underline = false, RGBA_Bytes backgroundColor = new RGBA_Bytes())
		{
			this.pointSize = pointSize;
			textWidget = new TextWidget(text, 0, 0, pointSize, justification, textColor, ellipsisIfClipped, underline, backgroundColor);
			textWidget.AutoExpandBoundsToText = true;
			textWidget.HAnchor = HAnchor.ParentLeft;
			textWidget.VAnchor = VAnchor.ParentCenter;
			unwrappedText = text;
			HAnchor = HAnchor.ParentLeftRight;
			VAnchor = VAnchor.FitToChildren;
			AddChild(textWidget);

			Width = startingWidth;
		}
Exemplo n.º 10
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TextButton"/> class.
        /// </summary>
        /// <param name="parent">This controls parent control.</param>
        /// <param name="font">The font to use to draw this buttons text value.</param>
        /// <param name="text">The text.</param>
        public TextButton(Control parent, SpriteFont font, string text)
            : base(parent)
        {
            if (text == null)
                throw new ArgumentNullException("text");

            Label = new Label(this, font);
            Justification = Justification.Centre;
            Label.Text = text;
            Colour = Color.White;
            Highlight = Color.CornflowerBlue;

            SetSize((int)Label.TextSize.X, (int)Label.TextSize.Y);
            Label.SetPoint(Points.TopLeft, Int2D.Zero);
            Label.SetPoint(Points.TopRight, Int2D.Zero);
        }
Exemplo n.º 11
0
        public Paragraph AddAlphaRow()
        {
            var paragraph1 = new Paragraph {RsidParagraphMarkRevision = "005205ED", RsidParagraphAddition = "00A01149", RsidParagraphProperties = "005205ED", RsidRunAdditionDefault = "00E7001C"};

            var paragraphProperties1 = new ParagraphProperties();
            var spacingBetweenLines1 = new SpacingBetweenLines {After = "60", Line = "240", LineRule = LineSpacingRuleValues.Auto};
            var justification1 = new Justification {Val = JustificationValues.Center};

            var paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            var runFonts1 = new RunFonts {ComplexScriptTheme = ThemeFontValues.MinorHighAnsi};
            var bold1 = new Bold();
            var fontSize1 = new FontSize {Val = "32"};
            var fontSizeComplexScript1 = new FontSizeComplexScript {Val = "32"};

            paragraphMarkRunProperties1.Append(runFonts1);
            paragraphMarkRunProperties1.Append(bold1);
            paragraphMarkRunProperties1.Append(fontSize1);
            paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

            paragraphProperties1.Append(new KeepNext());
            paragraphProperties1.Append(spacingBetweenLines1);
            paragraphProperties1.Append(justification1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);

            var run1 = new Run {RsidRunProperties = "005205ED"};

            var runProperties1 = new RunProperties();
            var runFonts2 = new RunFonts {ComplexScriptTheme = ThemeFontValues.MinorHighAnsi};
            var bold2 = new Bold();
            var fontSize2 = new FontSize {Val = "32"};
            var fontSizeComplexScript2 = new FontSizeComplexScript {Val = "32"};

            runProperties1.Append(runFonts2);
            runProperties1.Append(bold2);
            runProperties1.Append(fontSize2);
            runProperties1.Append(fontSizeComplexScript2);
            var text1 = new Text();
            text1.Text = FamilyName.Substring(0, 1);

            run1.Append(runProperties1);
            run1.Append(text1);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);
            return paragraph1;
        }
Exemplo n.º 12
0
 static string[] AlignColumns(string[] lines, Justification justification)
 {
     const char Separator = '$';
     // build input table and calculate columns count
     string[][] table = new string[lines.Length][];
     int columns = 0;
     for (int i = 0; i < lines.Length; i++)
     {
         string[] row = lines[i].TrimEnd(Separator).Split(Separator);
         if (columns < row.Length) columns = row.Length;
         table[i] = row;
     }
     // create formatted table
     string[][] formattedTable = new string[table.Length][];
     for (int i = 0; i < formattedTable.Length; i++)
     {
         formattedTable[i] = new string[columns];
     }
     for (int j = 0; j < columns; j++)
     {
         // get max column width
         int columnWidth = 0;
         for (int i = 0; i < table.Length; i++)
         {
             if (j < table[i].Length && columnWidth < table[i][j].Length)
                 columnWidth = table[i][j].Length;
         }
         // justify column cells
         for (int i = 0; i < formattedTable.Length; i++)
         {
             if (j < table[i].Length)
                 formattedTable[i][j] = justification(table[i][j], columnWidth);
             else
                 formattedTable[i][j] = new String(' ', columnWidth);
         }
     }
     // create result
     string[] result = new string[formattedTable.Length];
     for (int i = 0; i < result.Length; i++)
     {
         result[i] = String.Join(" ", formattedTable[i]);
     }
     return result;
 }
Exemplo n.º 13
0
        private static void AddHeaderRow(DataTable table, Table wordTable, TableStyle tableStyle)
        {
            // Create a row.
            TableRow tRow = new TableRow();

            foreach (DataColumn iColumn in table.Columns) {

                // Create a cell.
                TableCell tCell = new TableCell();

                TableCellProperties tCellProperties = new TableCellProperties();

                // Set Cell Color
                Shading tCellColor = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = System.Drawing.ColorTranslator.ToHtml(tableStyle.HeaderBackgroundColor) };
                tCellProperties.Append(tCellColor);

                // Append properties to the cell
                tCell.Append(tCellProperties);

                ParagraphProperties paragProperties = new ParagraphProperties();
                Justification justification1 = new Justification() { Val = JustificationValues.Center };
                SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "0" };
                paragProperties.Append(spacingBetweenLines1);
                paragProperties.Append(justification1);

                var parag = new Paragraph();
                parag.Append(paragProperties);

                var run = new Run(new Text(iColumn.ColumnName));
                ApplyFontProperties(tableStyle, RowIdentification.Header, run);
                parag.Append(run);

                // Specify the table cell content.
                tCell.Append(parag);

                // Append the table cell to the table row.
                tRow.Append(tCell);
            }

            // Append the table row to the table.
            wordTable.Append(tRow);
        }
Exemplo n.º 14
0
        public ScrollingTextScreen(GameLoop _game, Texture2D _background, MusicManager _musicPlayer, int _songIndex, string[] _scrollingText, ArrayList _fonts, int[] _fontIndices, Justification _justification)
        {
            game = _game;

            background = _background;
            musicPlayer = _musicPlayer;
            songIndex = _songIndex;

            scrollingText = _scrollingText;
            fonts = _fonts;
            fontIndices = _fontIndices;
            justification = _justification;

            screenCenter = game.GraphicsDevice.Viewport.Width / 2;
            screenHeight = game.GraphicsDevice.Viewport.Height;

            bgPosition = new Rectangle(0, 0, game.GraphicsDevice.Viewport.Width, screenHeight);
            bgSource = new Rectangle(0, 0, background.Width, background.Height);

            textPosition = new Vector2[scrollingText.Length];
            initScrollingTextScreen();
        }
Exemplo n.º 15
0
        public FontVAO CreateString(ShaderProgram program, string text, Justification justification = Justification.Left)
        {
            Vector3[] vertices = new Vector3[text.Length * 4];
            Vector2[] uvs = new Vector2[text.Length * 4];
            int[] indices = new int[text.Length * 6];

            int xpos = 0, width = 0;

            // calculate the initial x position depending on the justification
            if (justification != Justification.Left)
            {
                for (int i = 0; i < text.Length; i++)
                    width += (int)characters[characters.ContainsKey(text[i]) ? text[i] : ' '].width;
                if (justification == Justification.Right) xpos = -width;
                else xpos = -width / 2;
            }

            for (int i = 0; i < text.Length; i++)
            {
                // grab the character, replacing with ' ' if the character isn't loaded
                Character ch = characters[characters.ContainsKey(text[i]) ? text[i] : ' '];

                vertices[i * 4 + 0] = new Vector3(xpos, ch.height, 0);
                vertices[i * 4 + 1] = new Vector3(xpos, 0, 0);
                vertices[i * 4 + 2] = new Vector3(xpos + ch.width, ch.height, 0);
                vertices[i * 4 + 3] = new Vector3(xpos + ch.width, 0, 0);
                xpos += (int)ch.width;

                uvs[i * 4 + 0] = new Vector2(ch.x1, ch.y1);
                uvs[i * 4 + 1] = new Vector2(ch.x1, ch.y2);
                uvs[i * 4 + 2] = new Vector2(ch.x2, ch.y1);
                uvs[i * 4 + 3] = new Vector2(ch.x2, ch.y2);

                indices[i * 6 + 0] = i * 4 + 2;
                indices[i * 6 + 1] = i * 4 + 0;
                indices[i * 6 + 2] = i * 4 + 1;
                indices[i * 6 + 3] = i * 4 + 3;
                indices[i * 6 + 4] = i * 4 + 2;
                indices[i * 6 + 5] = i * 4 + 1;
            }

            // Create the vertex buffer objects and then create the array object
            return new FontVAO(program, new VBO<Vector3>(vertices), new VBO<Vector2>(uvs), new VBO<int>(indices, BufferTarget.ElementArrayBuffer));
        }
        private Paragraph GeneratePageCountparagraph(int pageCount)
        {
            Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "004E307B", RsidParagraphProperties = "00E073E3", RsidRunAdditionDefault = "00E073E3" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia };

            paragraphMarkRunProperties1.Append(runFonts1);

            paragraphProperties1.Append(justification1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);

            Run run1 = new Run();

            RunProperties runProperties1 = new RunProperties();
            RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.EastAsia };

            runProperties1.Append(runFonts2);
            Text text1 = new Text();
            text1.Text = "第";

            run1.Append(runProperties1);
            run1.Append(text1);

            Run run2 = new Run();

            RunProperties runProperties2 = new RunProperties();
            RunFonts runFonts3 = new RunFonts() { Hint = FontTypeHintValues.EastAsia };

            runProperties2.Append(runFonts3);
            Text text2 = new Text();
            text2.Text = pageCount.ToString();

            run2.Append(runProperties2);
            run2.Append(text2);

            Run run3 = new Run();

            RunProperties runProperties3 = new RunProperties();
            RunFonts runFonts4 = new RunFonts() { Hint = FontTypeHintValues.EastAsia };

            runProperties3.Append(runFonts4);
            Text text3 = new Text();
            text3.Text = "页";

            run3.Append(runProperties3);
            run3.Append(text3);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);
            paragraph1.Append(run2);
            paragraph1.Append(run3);
            return paragraph1;
        }
Exemplo n.º 17
0
        public TableRow GenerateTableRow(CellProps[] cellProps, UInt32Value height)
        {
            TableRow tableRow1 = new TableRow();
            TableRowProperties tableRowProperties1 = generateTableRowProperties(height);
            tableRow1.Append(tableRowProperties1);

            foreach (CellProps cp in cellProps) {
                if (cp.span == 0) continue;
                TableCell tableCell1 = new TableCell();
                TableCellProperties tableCellProperties1 = new TableCellProperties();

                TableCellBorders tableCellBorders1 = generateTableCellBordersPlain();
                Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };
                NoWrap noWrap1 = new NoWrap();
                TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };
                HideMark hideMark1 = new HideMark();

                if (cp.span > 1) {
                    GridSpan span = new GridSpan() { Val = (Int32Value)cp.span };
                    tableCellProperties1.Append(span);
                }

                tableCellProperties1.Append(tableCellBorders1);
                tableCellProperties1.Append(shading1);
                tableCellProperties1.Append(noWrap1);
                tableCellProperties1.Append(tableCellVerticalAlignment1);
                tableCellProperties1.Append(hideMark1);

                Paragraph paragraph1 = new Paragraph();

                ParagraphProperties paragraphProperties1 = new ParagraphProperties();
                Justification justification1 = new Justification() { Val = cp.align };

                ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
                FontSize fontSize1 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "18" };

                paragraphMarkRunProperties1.Append(fontSize1);
                paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

                paragraphProperties1.Append(justification1);
                paragraphProperties1.Append(paragraphMarkRunProperties1);

                Run run1 = new Run();

                RunProperties runProperties1 = new RunProperties();
                FontSize fontSize2 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "18" };

                runProperties1.Append(fontSize2);
                runProperties1.Append(fontSizeComplexScript2);

                run1.Append(runProperties1);
                if (cp.text != null) {
                    Text text1 = new Text();
                    text1.Text = cp.text;
                    run1.Append(text1);
                }

                paragraph1.Append(paragraphProperties1);
                paragraph1.Append(run1);

                tableCell1.Append(tableCellProperties1);
                tableCell1.Append(paragraph1);
                tableRow1.Append(tableCell1);

            }

            return tableRow1;
        }
Exemplo n.º 18
0
 public TypeFacePrinter(String text = "", double pointSize = 12, Vector2 origin = new Vector2(), Justification justification = Justification.Left, Baseline baseline = Baseline.Text)
     : this(text, new StyledTypeFace(LiberationSansFont.Instance, pointSize), origin, justification, baseline)
 {
 }
        /// <summary>
        /// Long for c'tor for use with a drop shadow.
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="edgeSize"></param>
        /// <param name="normalMapName"></param>
        /// <param name="baseColor"></param>
        /// <param name="label"></param>
        /// <param name="justify"></param>
        /// <param name="textColor"></param>
        /// <param name="dropShadowColor"></param>
        /// <param name="invertDropShadow"></param>
        public UIGridBaseSliderElement(float width, float height, float edgeSize, string normalMapName, Color baseColor, string label, Shared.GetFont font, Justification justify, Color textColor, Color dropShadowColor, bool invertDropShadow)
        {
            this.width     = width;
            this.height    = height;
            this.edgeSize  = edgeSize;
            this.baseColor = baseColor.ToVector4();

            this.normalMapName = normalMapName;

            this.Font             = font;
            this.label            = label;
            this.justify          = justify;
            this.textColor        = textColor;
            this.dropShadowColor  = dropShadowColor;
            useDropShadow         = true;
            this.invertDropShadow = invertDropShadow;
        }
Exemplo n.º 20
0
        public Paragraph AddAlphaRow()
        {
            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphMarkRevision = "005205ED", RsidParagraphAddition = "00A01149", RsidParagraphProperties = "005205ED", RsidRunAdditionDefault = "00E7001C"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines()
            {
                After = "60", Line = "240", LineRule = LineSpacingRuleValues.Auto
            };
            Justification justification1 = new Justification()
            {
                Val = JustificationValues.Center
            };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            RunFonts runFonts1 = new RunFonts()
            {
                ComplexScriptTheme = ThemeFontValues.MinorHighAnsi
            };
            Bold     bold1     = new Bold();
            FontSize fontSize1 = new FontSize()
            {
                Val = "32"
            };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript()
            {
                Val = "32"
            };

            paragraphMarkRunProperties1.Append(runFonts1);
            paragraphMarkRunProperties1.Append(bold1);
            paragraphMarkRunProperties1.Append(fontSize1);
            paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

            paragraphProperties1.Append(new KeepNext());
            paragraphProperties1.Append(spacingBetweenLines1);
            paragraphProperties1.Append(justification1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);

            Run run1 = new Run()
            {
                RsidRunProperties = "005205ED"
            };

            RunProperties runProperties1 = new RunProperties();
            RunFonts      runFonts2      = new RunFonts()
            {
                ComplexScriptTheme = ThemeFontValues.MinorHighAnsi
            };
            Bold     bold2     = new Bold();
            FontSize fontSize2 = new FontSize()
            {
                Val = "32"
            };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript()
            {
                Val = "32"
            };

            runProperties1.Append(runFonts2);
            runProperties1.Append(bold2);
            runProperties1.Append(fontSize2);
            runProperties1.Append(fontSizeComplexScript2);
            Text text1 = new Text();

            text1.Text = this.FamilyName.Substring(0, 1);

            run1.Append(runProperties1);
            run1.Append(text1);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);
            return(paragraph1);
        }
 public SkipIfFirstSpace(double x = 0, double y = 0, double pointSize = 12, Justification justification = Justification.Left, Color textColor = default(Color), bool ellipsisIfClipped = true, bool underline = false, Color backgroundColor = default(Color), TypeFace typeFace = null, bool bold = false)
     : base(" ", x, y, pointSize, justification, textColor, ellipsisIfClipped, underline, backgroundColor, typeFace, bold)
 {
 }
Exemplo n.º 22
0
 public Label(SpriteFont font, string text, Rectangle boundingBox, Color color, Justification justification = Justification.Center | Justification.Middle, Stroke stroke = null)
     : this(font, text)
 {
     _inputJustification = justification;
     _inputType          = LabelType.BoundingBox;
     _inputBoundingBox   = boundingBox;
     _inputStroke        = stroke;
     GenerateStrokeOffsets();
     Update(boundingBox, color, justification);
 }
Exemplo n.º 23
0
        public IActionResult Create(Processo modelo)
        {
            using (MemoryStream mem = new MemoryStream())
            {
                using (WordprocessingDocument wordDoc = WordprocessingDocument.Create(mem, DocumentFormat.OpenXml.WordprocessingDocumentType.Document, true))
                {
                    wordDoc.AddMainDocumentPart();
                    // siga a ordem
                    Document doc  = new Document();
                    Body     body = new Body();

                    // 1 paragrafo
                    Paragraph para = new Paragraph();

                    ParagraphProperties paragraphProperties1 = new ParagraphProperties();
                    ParagraphStyleId    paragraphStyleId1    = new ParagraphStyleId()
                    {
                        Val = "Normal"
                    };
                    Justification justification1 = new Justification()
                    {
                        Val = JustificationValues.Center
                    };
                    ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();

                    paragraphProperties1.Append(paragraphStyleId1);
                    paragraphProperties1.Append(justification1);
                    paragraphProperties1.Append(paragraphMarkRunProperties1);

                    Run           run            = new Run();
                    RunProperties runProperties1 = new RunProperties();

                    Text text = new Text()
                    {
                        Text = "EXCELENTÍSSIMO SENHOR DOUTOR JUIZ DE DIREITO DA MMª " + modelo.Vara + " DA COMARCA DE " + modelo.Comarca
                    };

                    // siga a ordem
                    run.Append(runProperties1);
                    run.Append(text);
                    para.Append(paragraphProperties1);
                    para.Append(run);

                    // 2 paragrafo
                    Paragraph para2 = new Paragraph();

                    ParagraphProperties paragraphProperties2 = new ParagraphProperties();
                    ParagraphStyleId    paragraphStyleId2    = new ParagraphStyleId()
                    {
                        Val = "Normal"
                    };
                    Justification justification2 = new Justification()
                    {
                        Val = JustificationValues.Start
                    };
                    ParagraphMarkRunProperties paragraphMarkRunProperties2 = new ParagraphMarkRunProperties();

                    paragraphProperties2.Append(paragraphStyleId2);
                    paragraphProperties2.Append(justification2);
                    paragraphProperties2.Append(paragraphMarkRunProperties2);

                    Run           run2           = new Run();
                    RunProperties runProperties3 = new RunProperties();

                    run2.AppendChild(new Break());
                    run2.AppendChild(new Text("PROC. PROCESSO. " + modelo.NrProcessoCnj));
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Text(modelo.BancoNome + ", por seus advogados, nos autos da " + modelo.Acao + " que move em face de " + modelo.ClienteNome +
                                              " em trâmite nesta MMª Vara Cível, processo supra, em atenção ao R. Despacho de fls.  , respeitosamente vem expor e requerer o quanto segue:"));
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Text("01. A composição amigável entre as partes foi realizada por meio da Agência Bancária do Executado, o que ocasionou a não formalização de termo " +
                                              " de acordo para que o Autor possa juntar aos autos. "));
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Text("02. Cumpre informar as condições do acordo firmado entre as partes, por meio do qual o Requerido efetuará o pagamento da dívida pela importância de R$ " +
                                              modelo.TotalDivida.ToString("C") + "(" + ConverteParaExtenso.ValorParaExtenso2(modelo.TotalDivida) + ") sendo entrada de R$ " + modelo.ValorEntrada.ToString("C") +
                                              "(" + ConverteParaExtenso.ValorParaExtenso2(modelo.ValorEntrada) + ") paga em " + modelo.DataVencimento.ToString("dd/MM/yyyy") + " mais " +
                                              modelo.NrParcelas + "(" + ConverteParaExtenso.NumeroParaExtenso(modelo.NrParcelas) + ") parcelas de R$ " + modelo.ValorParcela.ToString("C") + "(" +
                                              ConverteParaExtenso.ValorParaExtenso2(modelo.ValorParcela) + ") nos meses subsequentes, sendo certo que não há intenção de renovação da dívida ante " +
                                              " a ausência de manifestação nesse sentido."));
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Text("03. Assim, requer a SUSPENSÃO DA AÇÃO PELO PRAZO CONCEDIDO AO REQUERIDO PARA QUE CUMPRA A OBRIGAÇÃO PACTUADA, nos termos, do art. 792, do Código de Processo Civil.  "));
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Break());
                    run2.AppendChild(new Text("04. Por fim, tendo em vista o convênio existente entre o SERASA e o Poder Judiciário, requer a expedição de ofício àquele órgão para exclusão do " +
                                              " nome do Requerido, efetivado em razão do ajuizamento da presente ação. "));

                    para2.Append(paragraphProperties2);
                    para2.Append(run2);

                    // todos os 2 paragrafos no main body
                    body.Append(para);
                    body.Append(para2);

                    doc.Append(body);

                    wordDoc.MainDocumentPart.Document = doc;

                    wordDoc.Close();
                }

                return(File(mem.ToArray(), "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "ABC.docx"));
            }
        }
Exemplo n.º 24
0
        // Creates an Paragraph instance and adds its children.
        public TableRow GenerateTableRow(IndividualInfo ii, string iid)
        {
            TableRow tableRow1 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00442AD3"
            };

            TableRowProperties tableRowProperties1 = new TableRowProperties();
            CantSplit          cantSplit1          = new CantSplit();

            tableRowProperties1.Append(cantSplit1);

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth      tableCellWidth1      = new TableCellWidth()
            {
                Width = "4788", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run   run1   = new Run();
            Break break1 = new Break();

            run1.Append(break1);

            Run run2 = new Run();

            RunProperties runProperties1 = new RunProperties();
            NoProof       noProof1       = new NoProof();

            runProperties1.Append(noProof1);
            Text text1 = new Text();

            text1.Text = ii.FirstName;

            run2.Append(runProperties1);
            run2.Append(text1);

            Run  run3  = new Run();
            Text text2 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text2.Text = " ";

            run3.Append(text2);

            Run run4 = new Run();

            RunProperties runProperties2 = new RunProperties();
            NoProof       noProof2       = new NoProof();

            runProperties2.Append(noProof2);
            Text text3 = new Text();

            text3.Text = ii.LastName;

            run4.Append(runProperties2);
            run4.Append(text3);

            paragraph1.Append(run1);
            paragraph1.Append(run2);
            paragraph1.Append(run3);
            paragraph1.Append(run4);

            Paragraph paragraph2 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22"
            };

            Run run5 = new Run();

            RunProperties runProperties3 = new RunProperties();
            NoProof       noProof3       = new NoProof();

            runProperties3.Append(noProof3);
            Text text4 = new Text();

            text4.Text = ii.Address;

            run5.Append(runProperties3);
            run5.Append(text4);

            paragraph2.Append(run5);


            Paragraph paragraph2a = null;

            if (ii.Address2.HasValue())
            {
                paragraph2a = new Paragraph()
                {
                    RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22"
                };
                Run r = new Run();

                RunProperties rp = new RunProperties();
                NoProof       np = new NoProof();

                rp.Append(np);
                Text tt = new Text();
                tt.Text = ii.Address;

                r.Append(rp);
                r.Append(tt);

                paragraph2a.Append(r);
            }


            Paragraph paragraph3 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22"
            };

            Run run6 = new Run();

            RunProperties runProperties4 = new RunProperties();
            NoProof       noProof4       = new NoProof();

            runProperties4.Append(noProof4);
            Text text5 = new Text();

            text5.Text = ii.CityStateZip;
            run6.Append(runProperties4);
            run6.Append(text5);

            paragraph3.Append(run6);

            Paragraph paragraph4 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableStyle      tableStyle1      = new TableStyle()
            {
                Val = "TableGrid"
            };
            TableWidth tableWidth1 = new TableWidth()
            {
                Width = "0", Type = TableWidthUnitValues.Auto
            };

            TableBorders tableBorders1 = new TableBorders();
            TopBorder    topBorder1    = new TopBorder()
            {
                Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            LeftBorder leftBorder1 = new LeftBorder()
            {
                Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            BottomBorder bottomBorder1 = new BottomBorder()
            {
                Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            RightBorder rightBorder1 = new RightBorder()
            {
                Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder()
            {
                Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder()
            {
                Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };

            tableBorders1.Append(topBorder1);
            tableBorders1.Append(leftBorder1);
            tableBorders1.Append(bottomBorder1);
            tableBorders1.Append(rightBorder1);
            tableBorders1.Append(insideHorizontalBorder1);
            tableBorders1.Append(insideVerticalBorder1);
            TableLook tableLook1 = new TableLook()
            {
                Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true
            };

            tableProperties1.Append(tableStyle1);
            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableBorders1);
            tableProperties1.Append(tableLook1);

            TableGrid  tableGrid1  = new TableGrid();
            GridColumn gridColumn1 = new GridColumn()
            {
                Width = "1435"
            };
            GridColumn gridColumn2 = new GridColumn()
            {
                Width = "3122"
            };

            tableGrid1.Append(gridColumn1);
            tableGrid1.Append(gridColumn2);

            TableRow tableRow2 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43"
            };

            TableCell tableCell2 = new TableCell();

            TableCellProperties tableCellProperties2 = new TableCellProperties();
            TableCellWidth      tableCellWidth2      = new TableCellWidth()
            {
                Width = "1435", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties2.Append(tableCellWidth2);

            Paragraph paragraph5 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run  run11  = new Run();
            Text text10 = new Text();

            text10.Text = "Email";

            run11.Append(text10);

            paragraph5.Append(run11);

            tableCell2.Append(tableCellProperties2);
            tableCell2.Append(paragraph5);

            TableCell tableCell3 = new TableCell();

            TableCellProperties tableCellProperties3 = new TableCellProperties();
            TableCellWidth      tableCellWidth3      = new TableCellWidth()
            {
                Width = "3122", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties3.Append(tableCellWidth3);
            Paragraph paragraph6 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22"
            };

            paragraph6.Append(new Run(new Text(ii.Email)));

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph6);

            tableRow2.Append(tableCell2);
            tableRow2.Append(tableCell3);

            TableRow tableRow3 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43"
            };

            TableCell tableCell4 = new TableCell();

            TableCellProperties tableCellProperties4 = new TableCellProperties();
            TableCellWidth      tableCellWidth4      = new TableCellWidth()
            {
                Width = "1435", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties4.Append(tableCellWidth4);

            Paragraph paragraph7 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run  run12  = new Run();
            Text text11 = new Text();

            text11.Text = "Home Phone";

            run12.Append(text11);

            paragraph7.Append(run12);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph7);

            TableCell tableCell5 = new TableCell();

            TableCellProperties tableCellProperties5 = new TableCellProperties();
            TableCellWidth      tableCellWidth5      = new TableCellWidth()
            {
                Width = "3122", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties5.Append(tableCellWidth5);

            Paragraph paragraph8 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22"
            };

            Run run13 = new Run();

            RunProperties runProperties7 = new RunProperties();
            NoProof       noProof7       = new NoProof();

            runProperties7.Append(noProof7);
            Text text12 = new Text();

            text12.Text = ii.HomePhone.FmtFone();

            run13.Append(runProperties7);
            run13.Append(text12);

            Run  run14  = new Run();
            Text text13 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text13.Text = " ";

            run14.Append(text13);

            paragraph8.Append(run13);
            paragraph8.Append(run14);

            tableCell5.Append(tableCellProperties5);
            tableCell5.Append(paragraph8);

            tableRow3.Append(tableCell4);
            tableRow3.Append(tableCell5);

            TableRow tableRow4 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43"
            };

            TableCell tableCell6 = new TableCell();

            TableCellProperties tableCellProperties6 = new TableCellProperties();
            TableCellWidth      tableCellWidth6      = new TableCellWidth()
            {
                Width = "1435", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties6.Append(tableCellWidth6);

            Paragraph paragraph9 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run  run15  = new Run();
            Text text14 = new Text();

            text14.Text = "Cell Phone";

            run15.Append(text14);

            paragraph9.Append(run15);

            tableCell6.Append(tableCellProperties6);
            tableCell6.Append(paragraph9);

            TableCell tableCell7 = new TableCell();

            TableCellProperties tableCellProperties7 = new TableCellProperties();
            TableCellWidth      tableCellWidth7      = new TableCellWidth()
            {
                Width = "3122", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties7.Append(tableCellWidth7);

            Paragraph paragraph10 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run run16 = new Run();

            RunProperties runProperties8 = new RunProperties();
            NoProof       noProof8       = new NoProof();

            runProperties8.Append(noProof8);
            Text text15 = new Text();

            text15.Text = ii.CellPhone.FmtFone();

            run16.Append(runProperties8);
            run16.Append(text15);

            paragraph10.Append(run16);

            tableCell7.Append(tableCellProperties7);
            tableCell7.Append(paragraph10);

            tableRow4.Append(tableCell6);
            tableRow4.Append(tableCell7);

            TableRow tableRow5 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43"
            };

            TableCell tableCell8 = new TableCell();

            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth      tableCellWidth8      = new TableCellWidth()
            {
                Width = "1435", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties8.Append(tableCellWidth8);

            Paragraph paragraph11 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run  run17  = new Run();
            Text text16 = new Text();

            text16.Text = "Work Phone";

            run17.Append(text16);

            paragraph11.Append(run17);

            tableCell8.Append(tableCellProperties8);
            tableCell8.Append(paragraph11);

            TableCell tableCell9 = new TableCell();

            TableCellProperties tableCellProperties9 = new TableCellProperties();
            TableCellWidth      tableCellWidth9      = new TableCellWidth()
            {
                Width = "3122", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties9.Append(tableCellWidth9);

            Paragraph paragraph12 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run run18 = new Run();

            RunProperties runProperties9 = new RunProperties();
            NoProof       noProof9       = new NoProof();

            runProperties9.Append(noProof9);
            Text text17 = new Text();

            text17.Text = ii.WorkPhone.FmtFone();

            run18.Append(runProperties9);
            run18.Append(text17);

            paragraph12.Append(run18);

            tableCell9.Append(tableCellProperties9);
            tableCell9.Append(paragraph12);

            tableRow5.Append(tableCell8);
            tableRow5.Append(tableCell9);

            TableRow tableRow6 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43"
            };

            TableCell tableCell10 = new TableCell();

            TableCellProperties tableCellProperties10 = new TableCellProperties();
            TableCellWidth      tableCellWidth10      = new TableCellWidth()
            {
                Width = "1435", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties10.Append(tableCellWidth10);

            Paragraph paragraph13 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run  run19  = new Run();
            Text text18 = new Text();

            text18.Text = "Birthday";

            run19.Append(text18);

            paragraph13.Append(run19);

            tableCell10.Append(tableCellProperties10);
            tableCell10.Append(paragraph13);

            TableCell tableCell11 = new TableCell();

            TableCellProperties tableCellProperties11 = new TableCellProperties();
            TableCellWidth      tableCellWidth11      = new TableCellWidth()
            {
                Width = "3122", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties11.Append(tableCellWidth11);

            Paragraph paragraph14 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00BC57A3", RsidRunAdditionDefault = "00FB1F22"
            };

            Run run20 = new Run();

            RunProperties runProperties10 = new RunProperties();
            NoProof       noProof10       = new NoProof();

            runProperties10.Append(noProof10);
            Text text19 = new Text();

            text19.Text = ii.BirthDay;

            run20.Append(runProperties10);
            run20.Append(text19);

            paragraph14.Append(run20);

            tableCell11.Append(tableCellProperties11);
            tableCell11.Append(paragraph14);

            tableRow6.Append(tableCell10);
            tableRow6.Append(tableCell11);

            TableRow tableRow7 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43"
            };

            TableCell tableCell12 = new TableCell();

            TableCellProperties tableCellProperties12 = new TableCellProperties();
            TableCellWidth      tableCellWidth12      = new TableCellWidth()
            {
                Width = "1435", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties12.Append(tableCellWidth12);

            Paragraph paragraph15 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "006D0F9D", RsidRunAdditionDefault = "00FB1F22"
            };

            Run  run21  = new Run();
            Text text20 = new Text();

            text20.Text = "Anniversary";

            run21.Append(text20);

            paragraph15.Append(run21);

            tableCell12.Append(tableCellProperties12);
            tableCell12.Append(paragraph15);

            TableCell tableCell13 = new TableCell();

            TableCellProperties tableCellProperties13 = new TableCellProperties();
            TableCellWidth      tableCellWidth13      = new TableCellWidth()
            {
                Width = "3122", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties13.Append(tableCellWidth13);
            Paragraph paragraph16 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            paragraph16.Append(new Run(new Text(ii.Anniversary)));

            tableCell13.Append(tableCellProperties13);
            tableCell13.Append(paragraph16);

            tableRow7.Append(tableCell12);
            tableRow7.Append(tableCell13);

            TableRow tableRow8 = new TableRow()
            {
                RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43"
            };

            TableCell tableCell14 = new TableCell();

            TableCellProperties tableCellProperties14 = new TableCellProperties();
            TableCellWidth      tableCellWidth14      = new TableCellWidth()
            {
                Width = "1435", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties14.Append(tableCellWidth14);

            Paragraph paragraph17 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            Run  run22  = new Run();
            Text text21 = new Text();

            text21.Text = "Spouse";

            run22.Append(text21);

            paragraph17.Append(run22);

            tableCell14.Append(tableCellProperties14);
            tableCell14.Append(paragraph17);

            TableCell tableCell15 = new TableCell();

            TableCellProperties tableCellProperties15 = new TableCellProperties();
            TableCellWidth      tableCellWidth15      = new TableCellWidth()
            {
                Width = "3122", Type = TableWidthUnitValues.Dxa
            };

            tableCellProperties15.Append(tableCellWidth15);

            Paragraph paragraph18 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            NoProof noProof11 = new NoProof();

            paragraphMarkRunProperties1.Append(noProof11);

            paragraphProperties1.Append(paragraphMarkRunProperties1);

            Run run23 = new Run();

            RunProperties runProperties11 = new RunProperties();
            NoProof       noProof12       = new NoProof();

            runProperties11.Append(noProof12);
            Text text22 = new Text();

            text22.Text = ii.Spouse;

            run23.Append(runProperties11);
            run23.Append(text22);

            paragraph18.Append(paragraphProperties1);
            paragraph18.Append(run23);

            tableCell15.Append(tableCellProperties15);
            tableCell15.Append(paragraph18);

            tableRow8.Append(tableCell14);
            tableRow8.Append(tableCell15);

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow2);
            table1.Append(tableRow3);
            table1.Append(tableRow4);
            table1.Append(tableRow5);
            table1.Append(tableRow6);
            table1.Append(tableRow7);
            table1.Append(tableRow8);
            Paragraph paragraph19 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22"
            };

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);
            tableCell1.Append(paragraph2);
            if (paragraph2a != null)
            {
                tableCell1.Append(paragraph2a);
            }
            tableCell1.Append(paragraph3);
            tableCell1.Append(paragraph4);
            tableCell1.Append(table1);
            tableCell1.Append(paragraph19);

            TableCell tableCell16 = new TableCell();

            TableCellProperties tableCellProperties16 = new TableCellProperties();
            TableCellWidth      tableCellWidth16      = new TableCellWidth()
            {
                Width = "4788", Type = TableWidthUnitValues.Dxa
            };
            TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment()
            {
                Val = TableVerticalAlignmentValues.Center
            };

            tableCellProperties16.Append(tableCellWidth16);
            tableCellProperties16.Append(tableCellVerticalAlignment1);
            tableCell16.Append(tableCellProperties16);

            Paragraph paragraph20 = new Paragraph()
            {
                RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00960953", RsidRunAdditionDefault = "00FB1F22"
            };
            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            Justification       justification1       = new Justification()
            {
                Val = JustificationValues.Center
            };

            paragraphProperties2.Append(justification1);
            paragraph20.Append(paragraphProperties2);

            if (iid.HasValue())
            {
                Run run24 = new Run();

                RunProperties runProperties12 = new RunProperties();
                NoProof       noProof13       = new NoProof();

                runProperties12.Append(noProof13);

                Drawing drawing1 = new Drawing();

                Wp.Inline inline1 = new Wp.Inline()
                {
                    DistanceFromTop    = (UInt32Value)0U,
                    DistanceFromBottom = (UInt32Value)0U,
                    DistanceFromLeft   = (UInt32Value)0U,
                    DistanceFromRight  = (UInt32Value)0U
                };
                Wp.Extent extent1 = new Wp.Extent()
                {
                    Cx = 1428750L, Cy = 1905000L
                };
                Wp.EffectExtent effectExtent1 = new Wp.EffectExtent()
                {
                    LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L
                };
                Wp.DocProperties docProperties1 = new Wp.DocProperties()
                {
                    Id = (UInt32Value)1U, Name = "Picture 1", Description = "D:\\Pictures\\ttt.jpg"
                };

                Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 =
                    new Wp.NonVisualGraphicFrameDrawingProperties();

                A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks()
                {
                    NoChangeAspect = true
                };
                graphicFrameLocks1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

                nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1);

                A.Graphic graphic1 = new A.Graphic();
                graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

                A.GraphicData graphicData1 = new A.GraphicData()
                {
                    Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture"
                };

                Pic.Picture picture1 = new Pic.Picture();
                picture1.AddNamespaceDeclaration("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture");

                Pic.NonVisualPictureProperties nonVisualPictureProperties1 = new Pic.NonVisualPictureProperties();
                Pic.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Pic.NonVisualDrawingProperties()
                {
                    Id          = (UInt32Value)0U,
                    Name        = "Picture 459",
                    Description = "D:\\Pictures\\ttt.jpg"
                };

                Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 =
                    new Pic.NonVisualPictureDrawingProperties();
                A.PictureLocks pictureLocks1 = new A.PictureLocks()
                {
                    NoChangeAspect = false, NoChangeArrowheads = true
                };

                nonVisualPictureDrawingProperties1.Append(pictureLocks1);

                nonVisualPictureProperties1.Append(nonVisualDrawingProperties1);
                nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1);

                Pic.BlipFill blipFill1 = new Pic.BlipFill();

                A.Blip blip1 = new A.Blip()
                {
                    Embed = iid
                };

                A.BlipExtensionList blipExtensionList1 = new A.BlipExtensionList();

                A.BlipExtension blipExtension1 = new A.BlipExtension()
                {
                    Uri = "{28A0092B-C50C-407E-A947-70E740481C1C}"
                };

                A14.UseLocalDpi useLocalDpi1 = new A14.UseLocalDpi()
                {
                    Val = false
                };
                useLocalDpi1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

                blipExtension1.Append(useLocalDpi1);

                blipExtensionList1.Append(blipExtension1);

                blip1.Append(blipExtensionList1);
                A.SourceRectangle sourceRectangle1 = new A.SourceRectangle();

                A.Stretch       stretch1       = new A.Stretch();
                A.FillRectangle fillRectangle1 = new A.FillRectangle();

                stretch1.Append(fillRectangle1);

                blipFill1.Append(blip1);
                blipFill1.Append(sourceRectangle1);
                blipFill1.Append(stretch1);

                Pic.ShapeProperties shapeProperties1 = new Pic.ShapeProperties()
                {
                    BlackWhiteMode = A.BlackWhiteModeValues.Auto
                };

                A.Transform2D transform2D1 = new A.Transform2D();
                A.Offset      offset1      = new A.Offset()
                {
                    X = 0L, Y = 0L
                };
                A.Extents extents1 = new A.Extents()
                {
                    Cx = 1428750L, Cy = 1905000L
                };

                transform2D1.Append(offset1);
                transform2D1.Append(extents1);

                A.PresetGeometry presetGeometry1 = new A.PresetGeometry()
                {
                    Preset = A.ShapeTypeValues.Rectangle
                };
                A.AdjustValueList adjustValueList1 = new A.AdjustValueList();

                presetGeometry1.Append(adjustValueList1);
                A.NoFill noFill1 = new A.NoFill();

                A.Outline outline1 = new A.Outline();
                A.NoFill  noFill2  = new A.NoFill();

                outline1.Append(noFill2);

                shapeProperties1.Append(transform2D1);
                shapeProperties1.Append(presetGeometry1);
                shapeProperties1.Append(noFill1);
                shapeProperties1.Append(outline1);

                picture1.Append(nonVisualPictureProperties1);
                picture1.Append(blipFill1);
                picture1.Append(shapeProperties1);

                graphicData1.Append(picture1);

                graphic1.Append(graphicData1);

                inline1.Append(extent1);
                inline1.Append(effectExtent1);
                inline1.Append(docProperties1);
                inline1.Append(nonVisualGraphicFrameDrawingProperties1);
                inline1.Append(graphic1);

                drawing1.Append(inline1);

                run24.Append(runProperties12);
                run24.Append(drawing1);

                paragraph20.Append(run24);
            }
            tableCell16.Append(paragraph20);

            BookmarkStart bookmarkStart1 = new BookmarkStart()
            {
                Name = "_GoBack", Id = "0"
            };
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd()
            {
                Id = "0"
            };

            tableRow1.Append(tableRowProperties1);
            tableRow1.Append(tableCell1);
            tableRow1.Append(tableCell16);
            tableRow1.Append(bookmarkStart1);
            tableRow1.Append(bookmarkEnd1);
            return(tableRow1);
        }
Exemplo n.º 25
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Permission;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (StatusElement != null)
            {
                dest.StatusElement = (Code <Hl7.Fhir.Model.Permission.PermissionStatus>)StatusElement.DeepCopy();
            }
            if (Intent != null)
            {
                dest.Intent = (Hl7.Fhir.Model.CodeableConcept)Intent.DeepCopy();
            }
            if (Asserter != null)
            {
                dest.Asserter = (Hl7.Fhir.Model.ResourceReference)Asserter.DeepCopy();
            }
            if (AssertionDateElement != null)
            {
                dest.AssertionDateElement = new List <Hl7.Fhir.Model.FhirDateTime>(AssertionDateElement.DeepCopy());
            }
            if (Validity != null)
            {
                dest.Validity = (Hl7.Fhir.Model.Period)Validity.DeepCopy();
            }
            if (Purpose != null)
            {
                dest.Purpose = new List <Hl7.Fhir.Model.CodeableConcept>(Purpose.DeepCopy());
            }
            if (DataScope != null)
            {
                dest.DataScope = new List <Hl7.Fhir.Model.Expression>(DataScope.DeepCopy());
            }
            if (ProcessingActivity != null)
            {
                dest.ProcessingActivity = new List <Hl7.Fhir.Model.Permission.ProcessingActivityComponent>(ProcessingActivity.DeepCopy());
            }
            if (Justification != null)
            {
                dest.Justification = (Hl7.Fhir.Model.Permission.JustificationComponent)Justification.DeepCopy();
            }
            if (UsageLimitations != null)
            {
                dest.UsageLimitations = new List <Hl7.Fhir.Model.CodeableConcept>(UsageLimitations.DeepCopy());
            }
            return(dest);
        }
Exemplo n.º 26
0
 /// <summary>
 /// Long form c'tor for use with no drop shadow.
 /// </summary>
 public UIGridIntegerSliderElement(float width, float height, float edgeSize, string normalMapName, Color baseColor, string label, Shared.GetFont font, Justification justify, Color textColor)
     : base(width, height, edgeSize, normalMapName, baseColor, label, font, justify, textColor)
 {
 }
Exemplo n.º 27
0
        /// <summary>
        /// По умолчанию создает пустой параграф
        /// </summary>
        /// <param name="textparagraph">Текст по умолчанию null вернет пустой параграв</param>
        /// <param name="fontsize">Размер шрифта по умолчанию 10 20 делить на 2</param>
        /// <param name="justifications">Выравнивание по умолчанию Слева</param>
        /// <param name="style">Стиль текста 0 обычный по умолчанию: 1 Жирный:, 2 Курсив подчеркнутый, 3 Курсив</param>
        /// <param name="leftident">Отступ слева</param>
        /// <param name="breake">Кнопка Enter после вставки</param>
        /// <param name="isfoters">Вставка в Foters</param>
        /// <param name="isContextualSpacing">Не добавлять пробел между обзацами одного и того-ж стиля</param>
        /// <returns>Возвращаем созданный параграф либо пустой либо заполненный</returns>
        public Paragraph RunParagraphGeneratorStandart(string textparagraph = " ", string fontsize = "20", JustificationValues justifications = JustificationValues.Left, int style = 0, string leftident = "0", bool breake = false, bool isfoters = false, bool isContextualSpacing = true)
        {
            ParagraphProperties paragraphProperties = new ParagraphProperties();
            FontSize            fontSize            = new FontSize {
                Val = fontsize
            };
            Run           run           = new Run();
            RunProperties runProperties = new RunProperties();
            Paragraph     paragraph     = new Paragraph();

            Indentation indental = new Indentation()
            {
                FirstLine = leftident
            };
            Justification justification = new Justification()
            {
                Val = justifications
            };

            ContextualSpacing spasing = new ContextualSpacing()
            {
                Val = isContextualSpacing
            };
            SpacingBetweenLines sp = new SpacingBetweenLines();

            sp.After = "100";
            paragraphProperties.Append(sp);
            paragraphProperties.Append(spasing);

            Text text = new Text()
            {
                Text = textparagraph, Space = SpaceProcessingModeValues.Preserve
            };

            if (isfoters)
            {
                ParagraphStyleId paragraphStyleId = new ParagraphStyleId()
                {
                    Val = "Footer"
                };
                paragraphProperties.Append(paragraphStyleId);
            }

            paragraphProperties.Append(indental);
            paragraphProperties.Append(justification);
            paragraph.Append(paragraphProperties);

            RunFonts runFonts = new RunFonts
            {
                Ascii         = "Times New Roman",
                HighAnsi      = "Times New Roman",
                EastAsia      = "Times New Roman",
                ComplexScript = "Times New Roman"
            };

            if (style != 0)
            {
                AddStyleText(ref runProperties, style);
            }
            FontSizeComplexScript fontSizeComplexScript = new FontSizeComplexScript {
                Val = fontsize
            };

            runProperties.Append(runFonts);
            runProperties.Append(fontSize);
            runProperties.Append(fontSizeComplexScript);



            run.Append(runProperties);
            run.Append(text);

            if (breake)
            {
                Break break1 = new Break();
                run.Append(break1);
            }
            paragraph.Append(run);
            return(paragraph);
        }
        }   // end of UIGridModularCameraModeElement Render()

        /// <summary>
        /// If the state of the element has changed, we may need to re-create the texture.
        /// </summary>
        public void RefreshTexture()
        {
            if (dirty || diffuse.IsContentLost)
            {
                InGame.SetRenderTarget(diffuse);
                InGame.Clear(Color.White);

                int w = diffuse.Width;
                int h = diffuse.Height;

                ScreenSpaceQuad quad = ScreenSpaceQuad.GetInstance();


                // Render the white background.
                Vector2 position = Vector2.Zero;
                Vector2 size     = new Vector2(w, white.Height);
                quad.Render(white, position, size, "TexturedNoAlpha");

                // And the black parts.
                position.Y = 70;
                size.Y     = h - 70;
                quad.Render(middleBlack, position, size, "TexturedRegularAlpha");
                position.Y = 64;
                size.Y     = black.Height;
                quad.Render(black, position, size, "TexturedRegularAlpha");

                // The icons.
                position.X = (512 - icons.Width) / 2;
                position.Y = 80;
                size       = new Vector2(icons.Width, icons.Height);
                quad.Render(icons, position, size, "TexturedRegularAlpha");

                // Bounding box
                Vector2 min = new Vector2(position.X / w, position.Y / h);
                Vector2 max = new Vector2((position.X + size.X) / w, (140 + 2.0f * indicatorLit.Height) / h);
                iconButtonBox.Set(min, max);

                // The indicators.
                size     = new Vector2(indicatorLit.Width, indicatorLit.Height);
                position = new Vector2(105, 140);
                quad.Render(CurIndex == 0 ? indicatorLit : indicatorUnlit, position, size, "TexturedRegularAlpha");
                position = new Vector2(512 / 2 - size.X / 2, 140);
                quad.Render(CurIndex == 1 ? indicatorLit : indicatorUnlit, position, size, "TexturedRegularAlpha");
                position = new Vector2(512 - 105 - size.X, 140);
                quad.Render(CurIndex == 2 ? indicatorLit : indicatorUnlit, position, size, "TexturedRegularAlpha");


                // Disable writing to alpha channel.
                // This prevents transparent fringing around the text.
                GraphicsDevice device = BokuGame.bokuGame.GraphicsDevice;
                device.BlendState = UI2D.Shared.BlendStateColorWriteRGB;

                // Render the label and value text into the texture.
                string title = label + " : ";
                switch (CurIndex)
                {
                case 0:
                    title += Strings.Localize("editWorldParams.cameraModeFixedPosition");
                    break;

                case 1:
                    title += Strings.Localize("editWorldParams.cameraModeFixedOffset");
                    break;

                case 2:
                    title += Strings.Localize("editWorldParams.cameraModeFree");
                    break;
                }
                int margin = 0;
                position.X = 0;
                position.Y = (int)((64 - Font().LineSpacing) / 2.0f);
                int textWidth = (int)(Font().MeasureString(title).X);

                justify    = Justification.Center;
                position.X = TextHelper.CalcJustificationOffset(margin, w, textWidth, justify);

                Color   labelColor   = new Color(127, 127, 127);
                Color   valueColor   = new Color(140, 200, 63);
                Color   shadowColor  = new Color(0, 0, 0, 20);
                Vector2 shadowOffset = new Vector2(0, 6);

                SpriteBatch batch = UI2D.Shared.SpriteBatch;
                batch.Begin();

                // Title.
                TextHelper.DrawString(Font, title, position + shadowOffset, shadowColor);
                TextHelper.DrawString(Font, title, position, labelColor);

                batch.End();

                if (xButtonText != null)
                {
                    UI2D.Shared.GetFont ButtonFont = UI2D.Shared.GetGameFont18Bold;
                    position.X = w - 44;
                    position.Y = h - 44;
                    size       = new Vector2(48, 48);
                    quad.Render(ButtonTextures.XButton, position, size, "TexturedRegularAlpha");

                    max.X = (position.X + 44) / w;
                    min.Y = position.Y / h;

                    position.X -= 10 + (int)ButtonFont().MeasureString(Strings.Localize("editWorldParams.setCamera")).X;
                    batch.Begin();
                    TextHelper.DrawString(ButtonFont, Strings.Localize("editWorldParams.setCamera"), position + shadowOffset, shadowColor);
                    TextHelper.DrawString(ButtonFont, Strings.Localize("editWorldParams.setCamera"), position, labelColor);
                    batch.End();

                    min.X = position.X / w;
                    max.Y = min.Y + (float)ButtonFont().LineSpacing / h;

                    xButtonBox.Set(min, max);
                }

                // Restore default blend state.
                device.BlendState = BlendState.AlphaBlend;

                // Restore backbuffer.
                InGame.RestoreRenderTarget();

                dirty = false;
            }
        }   // end of UIGridModularCameraModeElement Render()
Exemplo n.º 29
0
 public TypeFacePrinter(string text, StyledTypeFace typeFaceStyle, Vector2 origin = default(Vector2), Justification justification = Justification.Left, Baseline baseline = Baseline.Text)
 {
     this.TypeFaceStyle = typeFaceStyle;
     this.text          = text;
     this.Justification = justification;
     this.Origin        = origin;
     this.Baseline      = baseline;
 }
Exemplo n.º 30
0
        public void CreateWordprocessingDocument(string filepath, string title, List <string> conversation)
        {
            // Create a document by supplying the filepath.
            using (WordprocessingDocument wordDocument =
                       WordprocessingDocument.Create(filepath, WordprocessingDocumentType.Document))
            {
                // Add a main document part.
                MainDocumentPart mainPart = wordDocument.AddMainDocumentPart();
                AddSettingsToMainDocumentPart(mainPart);

                // Create the document structure and add some text.
                Document doc = new Document();

                HeaderPart headerPart = mainPart.AddNewPart <HeaderPart>("rId7");
                GenerateHeader(headerPart);

                Body body = new Body();
                // 1 paragrafo
                Paragraph para = new Paragraph();

                ParagraphProperties paragraphProperties1 = new ParagraphProperties();
                ParagraphStyleId    paragraphStyleId1    = new ParagraphStyleId()
                {
                    Val = "Bold"
                };
                Justification justification1 = new Justification()
                {
                    Val = JustificationValues.Center
                };
                ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();

                paragraphProperties1.Append(paragraphStyleId1);
                //paragraphProperties1.Append(fontSize1);
                paragraphProperties1.Append(justification1);
                paragraphProperties1.Append(paragraphMarkRunProperties1);

                Run           run            = new Run();
                RunProperties runProperties1 = new RunProperties(new FontSize()
                {
                    Val = "50"
                }, new Bold()
                {
                    Val = OnOffValue.FromBoolean(true)
                });

                Text text = new Text()
                {
                    Text = title
                };

                // siga a ordem
                run.Append(runProperties1);
                run.Append(text);
                para.Append(paragraphProperties1);
                para.Append(run);
                body.Append(para);
                //Paragraph titlePara = CreateParagraph( title, JustificationValues.Center);
                //body.Append(titlePara);

                // "Here are the discussed points:" Paragraph
                Paragraph pointsHeaderPara = CreateParagraph("Here are the discussed points:", JustificationValues.Left);

                body.Append(pointsHeaderPara);

                foreach (var line in conversation)
                {
                    Paragraph paragraph1 = CreateParagraphForBullets(line, wordDocument);
                    body.Append(paragraph1);
                }

                doc.Append(body);

                wordDocument.MainDocumentPart.Document = doc;

                wordDocument.Close();
            }
        }
Exemplo n.º 31
0
        public static Vector2 GetStringFixedHeight(SpriteFont font, string text, Vector2 position, float maxFontHeight, Justification justification, out float scale, out Rectangle boundingBox)
        {
            Vector2 size = MeasureString(font, text);

            scale = (maxFontHeight / size.Y);
            int strWidth  = (int)Math.Round(size.X * scale);
            int strHeight = (int)Math.Round(size.Y * scale);

            float xOffset = 0, yOffset = 0;

            if (justification.HasFlag(Justification.Right))
            {
                xOffset += -strWidth;
            }
            else if (justification.HasFlag(Justification.Center))
            {
                xOffset += -strWidth / 2;
            }
            if (!justification.HasFlag(Justification.Bottom) && !justification.HasFlag(Justification.Middle))
            {
                //yOffset += 0;
            }
            else if (justification.HasFlag(Justification.Bottom))
            {
                yOffset += -strHeight;
            }
            else if (justification.HasFlag(Justification.Middle))
            {
                yOffset += -strHeight / 2;
            }

            boundingBox = new Rectangle((int)(position.X + xOffset), (int)(position.Y + yOffset), strWidth, strHeight);

            int   newLines = text.Count(c => c == '\n');
            float yDiff    = (font.LineSpacing * (newLines + 1)) - size.Y;

            position.Y -= yDiff * scale;

            return(position + new Vector2(xOffset, yOffset));
        }
Exemplo n.º 32
0
 public static SelectListItem CreateSelectListItem(Justification j)
 => new SelectListItem
 {
     Value = j.Key, Text = j.Description
 };
Exemplo n.º 33
0
        private void GenerateFooterPartContent(FooterPart footerPart1)
        {
            Footer footer1 = new Footer();

            SdtBlock sdtBlock1 = new SdtBlock();

            SdtProperties sdtProperties1 = new SdtProperties();
            SdtId         sdtId1         = new SdtId()
            {
                Val = 712706661
            };

            SdtContentDocPartObject sdtContentDocPartObject1 = new SdtContentDocPartObject();
            DocPartGallery          docPartGallery1          = new DocPartGallery()
            {
                Val = "Page Numbers (Bottom of Page)"
            };
            DocPartUnique docPartUnique1 = new DocPartUnique();

            sdtContentDocPartObject1.Append(docPartGallery1);
            sdtContentDocPartObject1.Append(docPartUnique1);

            sdtProperties1.Append(sdtId1);
            sdtProperties1.Append(sdtContentDocPartObject1);

            SdtEndCharProperties sdtEndCharProperties1 = new SdtEndCharProperties();

            RunProperties runProperties1 = new RunProperties();
            NoProof       noProof1       = new NoProof();

            runProperties1.Append(noProof1);

            sdtEndCharProperties1.Append(runProperties1);

            SdtContentBlock sdtContentBlock1 = new SdtContentBlock();

            Paragraph paragraph1 = new Paragraph();

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            ParagraphStyleId    paragraphStyleId1    = new ParagraphStyleId()
            {
                Val = "Footer"
            };
            Justification justification1 = new Justification()
            {
                Val = JustificationValues.Center
            };

            paragraphProperties1.Append(paragraphStyleId1);
            paragraphProperties1.Append(justification1);

            Run       run1       = new Run();
            FieldChar fieldChar1 = new FieldChar()
            {
                FieldCharType = FieldCharValues.Begin
            };

            run1.Append(fieldChar1);

            Run       run2       = new Run();
            FieldCode fieldCode1 = new FieldCode()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            fieldCode1.Text = " PAGE   \\* MERGEFORMAT ";

            run2.Append(fieldCode1);

            Run       run3       = new Run();
            FieldChar fieldChar2 = new FieldChar()
            {
                FieldCharType = FieldCharValues.Separate
            };

            run3.Append(fieldChar2);

            Run run4 = new Run();

            RunProperties runProperties2 = new RunProperties();
            NoProof       noProof2       = new NoProof();

            runProperties2.Append(noProof2);
            Text text1 = new Text();

            text1.Text = "1";

            run4.Append(runProperties2);
            run4.Append(text1);

            Run run5 = new Run();

            RunProperties runProperties3 = new RunProperties();
            NoProof       noProof3       = new NoProof();

            runProperties3.Append(noProof3);
            FieldChar fieldChar3 = new FieldChar()
            {
                FieldCharType = FieldCharValues.End
            };

            run5.Append(runProperties3);
            run5.Append(fieldChar3);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);
            paragraph1.Append(run2);
            paragraph1.Append(run3);
            paragraph1.Append(run4);
            paragraph1.Append(run5);

            sdtContentBlock1.Append(paragraph1);

            sdtBlock1.Append(sdtProperties1);
            sdtBlock1.Append(sdtEndCharProperties1);
            sdtBlock1.Append(sdtContentBlock1);

            Paragraph paragraph2 = new Paragraph();

            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            ParagraphStyleId    paragraphStyleId2    = new ParagraphStyleId()
            {
                Val = "Footer"
            };

            paragraphProperties2.Append(paragraphStyleId2);

            paragraph2.Append(paragraphProperties2);

            footer1.Append(sdtBlock1);
            footer1.Append(paragraph2);

            footerPart1.Footer = footer1;
        }
Exemplo n.º 34
0
        /// <summary>
        /// Long form c'tor for use with no drop shadow.
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="edgeSize"></param>
        /// <param name="normalMapName"></param>
        /// <param name="baseColor"></param>
        /// <param name="label"></param>
        /// <param name="justify"></param>
        /// <param name="textColor"></param>
        public UIGridBaseModularSliderElement(float width, float height, float edgeSize, string normalMapName, Color baseColor, string label, Shared.GetFont font, Justification justify, Color textColor)
        {
            this.width    = width;
            this.height   = height;
            this.edgeSize = edgeSize;
            //this.baseColor = baseColor.ToVector4();

            this.normalMapName = normalMapName;

            this.Font      = font;
            this.label     = label;
            this.justify   = justify;
            this.textColor = textColor;
            useDropShadow  = false;
        }
Exemplo n.º 35
0
 public TypeFacePrinter(string text = "", double pointSize = 12, Vector2 origin = default(Vector2), Justification justification = Justification.Left, Baseline baseline = Baseline.Text, bool bold = false)
     : this(text,
            bold ? new StyledTypeFace(LiberationSansBoldFont.Instance, pointSize) : new StyledTypeFace(LiberationSansFont.Instance, pointSize),
            origin,
            justification,
            baseline)
 {
 }
        private TableCell BuildCell(string text, int gridSpan = 1, VerticalMerge vm = null, bool bold = false)
        {
            TableCell cell = new TableCell();
            Paragraph p = new Paragraph();
            ParagraphProperties paragraphProperties = new ParagraphProperties();

            Justification justification = new Justification() { Val = JustificationValues.Center };
            paragraphProperties.Append(justification);

            if (bold)
            {
                ParagraphMarkRunProperties paragraphMarkRunProperties = new ParagraphMarkRunProperties();
                Bold boldStyle = new Bold();

                paragraphMarkRunProperties.Append(boldStyle);
                paragraphProperties.Append(paragraphMarkRunProperties);
            }
            p.Append(paragraphProperties);

            if (!string.IsNullOrEmpty(text))
            {
                Run r = new Run();
                RunProperties runProperties = new RunProperties();

                if (bold)
                {
                    Bold boldStyle = new Bold();

                    runProperties.Append(boldStyle);
                }

                r.Append(runProperties);

                Text t = new Text { Text = text };
                r.AppendChild<Text>(t);

                p.AppendChild<Run>(r);
            }

            TableCellProperties cellProperty = new TableCellProperties();
            TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };

            cellProperty.Append(tableCellVerticalAlignment1);

            if (gridSpan > 1)
            {
                GridSpan gs = new GridSpan { Val = gridSpan };
                cellProperty.Append(gs);
            }

            if (vm != null)
            {
                cellProperty.Append(vm);
            }

            cell.Append(cellProperty);
            cell.Append(p);

            return cell;
        }
        }   // end of TwitchPick()

        /// <summary>
        /// If the state of the element has changed, we may need to re-create the texture.
        /// </summary>
        private void RefreshTexture()
        {
            if (dirty || diffuse.IsContentLost)
            {
                InGame.SetRenderTarget(diffuse);
                InGame.Clear(Color.White);

                int w = diffuse.Width;
                int h = diffuse.Height;

                ScreenSpaceQuad quad = ScreenSpaceQuad.GetInstance();


                // Render the white background.
                Vector2 position = Vector2.Zero;
                Vector2 size     = new Vector2(w, white.Height);
                quad.Render(white, position, size, "TexturedNoAlpha");

                // And the black parts.
                position.Y = 70;
                size.Y     = h - 70;
                quad.Render(middleBlack, position, size, "TexturedRegularAlpha");
                position.Y = 64;
                size.Y     = black.Height;
                quad.Render(black, position, size, "TexturedRegularAlpha");

                // The arrows.
                position.X = 20;
                position.Y = 90;
                size       = new Vector2(arrow.Width, arrow.Height);
                quad.Render(arrow, position, size, "TexturedRegularAlpha");
                position.X = w - position.X;
                size.X     = -size.X;
                quad.Render(arrow, position, size, "TexturedRegularAlpha");

                // The indicator.
                size     = new Vector2(indicatorLit.Width, indicatorLit.Height);
                position = new Vector2(512 / 2 - size.X / 2, 140);
                quad.Render(indicatorLit, position, size, "TexturedRegularAlpha");

                // The pictures.  Render them from the outside-in so that they
                // ovelap correctly.
                Vector2 border = new Vector2(3, 3);
                int     index;
                for (int i = limit; i > 0; i--)
                {
                    index    = (CurIndex + i) % pics.Count;
                    size     = new Vector2(pics[index].size);
                    position = pics[index].position - 0.5f * size;
                    quad.Render(new Vector4(0, 0, 0, 1), position, size);
                    quad.Render(pics[index].texture, position + border, size - 2.0f * border, "TexturedRegularAlpha");

                    index    = (CurIndex - i + pics.Count) % pics.Count;
                    size     = new Vector2(pics[index].size);
                    position = pics[index].position - 0.5f * size;
                    quad.Render(new Vector4(0, 0, 0, 1), position, size);
                    quad.Render(pics[index].texture, position + border, size - 2.0f * border, "TexturedRegularAlpha");
                }
                index    = CurIndex;
                size     = new Vector2(pics[index].size);
                position = pics[index].position - 0.5f * size;
                quad.Render(new Vector4(0, 0, 0, 1), position, size);
                quad.Render(pics[index].texture, position + border, size - 2.0f * border, "TexturedRegularAlpha");

                // Disable writing to alpha channel.
                // This prevents transparent fringing around the text.
                GraphicsDevice device = BokuGame.bokuGame.GraphicsDevice;
                device.BlendState = UI2D.Shared.BlendStateColorWriteRGB;

                // Render the label and value text into the texture.
                string title  = label + " : " + pics[CurIndex].label;
                int    margin = 0;
                position.X = 0;
                position.Y = (int)((64 - Font().LineSpacing) / 2.0f);
                int textWidth = (int)(Font().MeasureString(title).X);

                justify    = Justification.Center;
                position.X = TextHelper.CalcJustificationOffset(margin, w, textWidth, justify);

                Color   labelColor   = new Color(127, 127, 127);
                Color   valueColor   = new Color(140, 200, 63);
                Color   shadowColor  = new Color(0, 0, 0, 20);
                Vector2 shadowOffset = new Vector2(0, 6);

                SpriteBatch batch = UI2D.Shared.SpriteBatch;
                batch.Begin();

                // Title.
                TextHelper.DrawString(Font, title, position + shadowOffset, shadowColor);
                TextHelper.DrawString(Font, title, position, labelColor);

                batch.End();

                // Restore default blend state.
                device.BlendState = BlendState.AlphaBlend;


                // Restore backbuffer.
                InGame.RestoreRenderTarget();

                dirty = false;
            }
        }   // end of UIGridModularPictureListElement Render()
Exemplo n.º 38
0
        }   // end of UIGridBaseModularSliderElement Render()

        /// <summary>
        /// If the state of the element has changed, we may need to re-create the texture.
        /// </summary>
        public void RefreshTexture()
        {
            if (dirty || diffuse.IsContentLost)
            {
                InGame.SetRenderTarget(diffuse);
                InGame.Clear(Color.White);

                int w = diffuse.Width;
                int h = diffuse.Height;

                ScreenSpaceQuad quad = ScreenSpaceQuad.GetInstance();

                // Render the white background.
                Vector2 position = Vector2.Zero;
                Vector2 size     = new Vector2(w, h);
                quad.Render(sliderWhite, position, size, "TexturedNoAlpha");

                // And the black part.
                int blackHeight = 70;   // From Photoshop...
                position.Y = h - blackHeight;
                size.Y     = blackHeight;
                quad.Render(sliderBlack, position, size, "TexturedRegularAlpha");

                // Disable writing to alpha channel.
                // This prevents transparent fringing around the text.
                GraphicsDevice device = BokuGame.bokuGame.GraphicsDevice;
                device.BlendState = UI2D.Shared.BlendStateColorWriteRGB;

                // Render the label and value text into the texture.
                int margin = 0;
                position.X = 0;
                position.Y = (int)(((h - blackHeight) - Font().LineSpacing) / 2.0f) - 2;
                int textWidth = (int)(Font().MeasureString(label).X);

                justify    = Justification.Center;
                position.X = TextHelper.CalcJustificationOffset(margin, w, textWidth, justify);

                Color   labelColor   = new Color(127, 127, 127);
                Color   valueColor   = new Color(140, 200, 63);
                Color   shadowColor  = new Color(0, 0, 0, 20);
                Vector2 shadowOffset = new Vector2(0, 6);

                SpriteBatch batch = UI2D.Shared.SpriteBatch;
                batch.Begin();
                TextHelper.DrawString(Font, label, position + shadowOffset, shadowColor);
                TextHelper.DrawString(Font, label, position, labelColor);

                string valueString = GetFormattedValue();
                margin     = 48;
                position.X = w - margin - (int)Font().MeasureString(valueString).X;
                TextHelper.DrawString(Font, valueString, position, valueColor);
                batch.End();

                // Render the value bead.
                int left             = 22;
                int top              = 93;
                int right            = w - left;
                int verticalRadius   = 8;
                int horizontalRadius = 6;

                float percent = GetSliderPercentage();
                int   len     = right - left - horizontalRadius * 2;
                len   = (int)(len * percent);
                len   = Math.Max(len, 7);
                right = len + left + horizontalRadius * 2 - 2;

                quad.Render(sliderBeadEnd, new Vector2(left, top), new Vector2(horizontalRadius, verticalRadius * 2), "TexturedRegularAlpha");
                quad.Render(sliderBeadEnd, new Vector2(right, top), new Vector2(-horizontalRadius, verticalRadius * 2), "TexturedRegularAlpha");
                quad.Render(sliderBeadMiddle, new Vector2(left + horizontalRadius, top), new Vector2(len - 2, verticalRadius * 2), "TexturedRegularAlpha");

                /*
                 * // Render help button.
                 * if (ShowHelpButton)
                 * {
                 *  position.X = w - 54;
                 *  position.Y = h - 54;
                 *  size = new Vector2(64, 64);
                 *  quad.Render(ButtonTextures.YButton, position, size, "TexturedRegularAlpha");
                 *  position.X -= 10 + (int)Font().MeasureString(Strings.Localize("editObjectParams.help")).X;
                 *  batch.Begin();
                 *  TextHelper.DrawString(Font, Strings.Localize("editObjectParams.help"), position + shadowOffset, shadowColor);
                 *  TextHelper.DrawString(Font, Strings.Localize("editObjectParams.help"), position, fontColor);
                 *  batch.End();
                 * }
                 */

                // Restore default blend state.
                device.BlendState = BlendState.AlphaBlend;

                // Restore backbuffer.
                InGame.RestoreRenderTarget();

                dirty = false;
            }
        }   // end of UIGridIntegerSliderElement RefreshTexture()
Exemplo n.º 39
0
        public TextWidget(string text, double x = 0, double y = 0, double pointSize = 12, Justification justification = Justification.Left, RGBA_Bytes textColor = new RGBA_Bytes(), bool ellipsisIfClipped = true, bool underline = false, RGBA_Bytes backgroundColor = new RGBA_Bytes())
        {
            pointSize             *= GlobalPointSizeScaleRatio;
            Selectable             = false;
            DoubleBuffer           = DoubleBufferDefault;
            AutoExpandBoundsToText = false;
            EllipsisIfClipped      = ellipsisIfClipped;
            OriginRelativeParent   = new Vector2(x, y);
            this.textColor         = textColor;
            if (this.textColor.Alpha0To255 == 0)
            {
                // we assume it is the default if alpha 0.  Also there is no reason to make a text color of this as it will draw nothing.
                this.textColor = RGBA_Bytes.Black;
            }
            if (backgroundColor.Alpha0To255 != 0)
            {
                BackgroundColor = backgroundColor;
            }

            base.Text = text;
            StyledTypeFace typeFaceStyle = new StyledTypeFace(LiberationSansFont.Instance, pointSize, underline);

            printer = new TypeFacePrinter(text, typeFaceStyle, justification: justification);

            LocalBounds = printer.LocalBounds;

            MinimumSize = new Vector2(LocalBounds.Width, LocalBounds.Height);
        }
Exemplo n.º 40
0
        public IActionResult CreateComplexDocument()
        {
            using (var stream = new MemoryStream())
            {
                using (var wordDocument = WordprocessingDocument.Create(stream,
                                                                        WordprocessingDocumentType.Document, true))
                {
                    wordDocument.AddMainDocumentPart();

                    var document = new Document();
                    var body     = new Body();

                    var paragraph1           = new Paragraph();
                    var paragraphProperties1 = new ParagraphProperties();
                    var paragraphStyleId1    = new ParagraphStyleId()
                    {
                        Val = "Normal"
                    };
                    var justifyJustification1 = new Justification()
                    {
                        Val = JustificationValues.Both
                    };

                    paragraphProperties1.Append(paragraphStyleId1);
                    paragraphProperties1.Append(justifyJustification1);

                    var run1  = new Run();
                    var text1 = new Text("A normal text, ")
                    {
                        Space = SpaceProcessingModeValues.Preserve
                    };
                    run1.Append(text1);

                    ///////////////////////////

                    var run2           = new Run();
                    var runProperties2 = new RunProperties();
                    runProperties2.Bold = new Bold();

                    var text2 = new Text("now a bold text, ")
                    {
                        Space = SpaceProcessingModeValues.Preserve
                    };
                    run2.Append(runProperties2); // Properties must go first... always!
                    run2.Append(text2);

                    ///////////////////////////

                    var run3           = new Run();
                    var runProperties3 = new RunProperties();
                    runProperties3.Italic = new Italic();

                    var text3 = new Text("now an italic text. ")
                    {
                        Space = SpaceProcessingModeValues.Preserve
                    };
                    run3.Append(runProperties3);
                    run3.Append(text3);

                    ///////////////////////////

                    var run4           = new Run();
                    var runProperties4 = new RunProperties();
                    runProperties4.Italic    = new Italic();
                    runProperties4.Underline = new Underline();
                    runProperties4.Bold      = new Bold();

                    var text4 = new Text("Yes, you can combine styles, ")
                    {
                        Space = SpaceProcessingModeValues.Preserve
                    };
                    run4.Append(runProperties4);
                    run4.Append(text4);

                    ///////////////////////////

                    var run5           = new Run();
                    var runProperties5 = new RunProperties();
                    runProperties5.Color = new Color()
                    {
                        Val = "FFFF00"
                    };

                    var text5 = new Text("and add some color for your text.")
                    {
                        Space = SpaceProcessingModeValues.Preserve
                    };
                    run5.Append(runProperties5);
                    run5.Append(text5);

                    paragraph1.Append(paragraphProperties1);
                    paragraph1.Append(run1);
                    paragraph1.Append(run2);
                    paragraph1.Append(run3);
                    paragraph1.Append(run4);
                    paragraph1.Append(run5);

                    ///////////////////////////
                    ///////////////////////////

                    var runProperties6 = new RunProperties();
                    runProperties6.RunStyle = new RunStyle()
                    {
                        Val = "Hyperlink"
                    };
                    runProperties6.Color = new Color()
                    {
                        ThemeColor = ThemeColorValues.Hyperlink
                    };

                    var text6 = new Text("Visit my website!")
                    {
                        Space = SpaceProcessingModeValues.Preserve
                    };
                    var run6 = new Run(runProperties6, text6);

                    var url = "https://luisbeltran.mx";
                    var uri = new Uri(url);

                    var hyperlinkRelationship = wordDocument.MainDocumentPart.AddHyperlinkRelationship(uri, true);
                    var id = hyperlinkRelationship.Id;

                    var proofError = new ProofError()
                    {
                        Type = ProofingErrorValues.GrammarStart
                    };

                    var hyperLink = new Hyperlink(proofError, run6)
                    {
                        History = OnOffValue.FromBoolean(true),
                        Id      = id
                    };

                    var paragraph2 = new Paragraph();
                    paragraph2.Append(hyperLink);

                    ///////////////////////////

                    body.Append(paragraph1);
                    body.Append(paragraph2);

                    document.Append(body);
                    wordDocument.MainDocumentPart.Document = document;
                    wordDocument.Close();
                }

                return(File(stream.ToArray(), docxMIMEType,
                            "Word Document Complex Example.docx"));
            }
        }
Exemplo n.º 41
0
        // Generates content of part.
        private void GeneratePartContent(StyleDefinitionsPart part)
        {
            Styles styles1 = new Styles();
            styles1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
            styles1.AddNamespaceDeclaration("w", "http://schemas.openxmlformats.org/wordprocessingml/2006/main");

            DocDefaults docDefaults1 = new DocDefaults();

            RunPropertiesDefault runPropertiesDefault1 = new RunPropertiesDefault();

            RunPropertiesBaseStyle runPropertiesBaseStyle1 = new RunPropertiesBaseStyle();
            RunFonts runFonts1 = new RunFonts() { AsciiTheme = ThemeFontValues.MinorHighAnsi, HighAnsiTheme = ThemeFontValues.MinorHighAnsi, EastAsiaTheme = ThemeFontValues.MinorHighAnsi, ComplexScriptTheme = ThemeFontValues.MinorBidi };
            FontSize fontSize1 = new FontSize() { Val = "22" };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "22" };
            Languages languages1 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" };

            runPropertiesBaseStyle1.Append(runFonts1);
            runPropertiesBaseStyle1.Append(fontSize1);
            runPropertiesBaseStyle1.Append(fontSizeComplexScript1);
            runPropertiesBaseStyle1.Append(languages1);

            runPropertiesDefault1.Append(runPropertiesBaseStyle1);

            ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault();

            ParagraphPropertiesBaseStyle paragraphPropertiesBaseStyle1 = new ParagraphPropertiesBaseStyle();
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { After = "200", Line = "276", LineRule = LineSpacingRuleValues.Auto };

            paragraphPropertiesBaseStyle1.Append(spacingBetweenLines1);

            paragraphPropertiesDefault1.Append(paragraphPropertiesBaseStyle1);

            docDefaults1.Append(runPropertiesDefault1);
            docDefaults1.Append(paragraphPropertiesDefault1);

            LatentStyles latentStyles1 = new LatentStyles() { DefaultLockedState = false, DefaultUiPriority = 99, DefaultSemiHidden = true, DefaultUnhideWhenUsed = true, DefaultPrimaryStyle = false, Count = 267 };
            LatentStyleExceptionInfo latentStyleExceptionInfo1 = new LatentStyleExceptionInfo() { Name = "Normal", UiPriority = 0, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo2 = new LatentStyleExceptionInfo() { Name = "heading 1", UiPriority = 9, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo3 = new LatentStyleExceptionInfo() { Name = "heading 2", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo4 = new LatentStyleExceptionInfo() { Name = "heading 3", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo5 = new LatentStyleExceptionInfo() { Name = "heading 4", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo6 = new LatentStyleExceptionInfo() { Name = "heading 5", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo7 = new LatentStyleExceptionInfo() { Name = "heading 6", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo8 = new LatentStyleExceptionInfo() { Name = "heading 7", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo9 = new LatentStyleExceptionInfo() { Name = "heading 8", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo10 = new LatentStyleExceptionInfo() { Name = "heading 9", UiPriority = 9, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo11 = new LatentStyleExceptionInfo() { Name = "toc 1", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo12 = new LatentStyleExceptionInfo() { Name = "toc 2", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo13 = new LatentStyleExceptionInfo() { Name = "toc 3", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo14 = new LatentStyleExceptionInfo() { Name = "toc 4", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo15 = new LatentStyleExceptionInfo() { Name = "toc 5", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo16 = new LatentStyleExceptionInfo() { Name = "toc 6", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo17 = new LatentStyleExceptionInfo() { Name = "toc 7", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo18 = new LatentStyleExceptionInfo() { Name = "toc 8", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo19 = new LatentStyleExceptionInfo() { Name = "toc 9", UiPriority = 39 };
            LatentStyleExceptionInfo latentStyleExceptionInfo20 = new LatentStyleExceptionInfo() { Name = "caption", UiPriority = 35, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo21 = new LatentStyleExceptionInfo() { Name = "Title", UiPriority = 10, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo22 = new LatentStyleExceptionInfo() { Name = "Default Paragraph Font", UiPriority = 1 };
            LatentStyleExceptionInfo latentStyleExceptionInfo23 = new LatentStyleExceptionInfo() { Name = "Subtitle", UiPriority = 11, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo24 = new LatentStyleExceptionInfo() { Name = "Strong", UiPriority = 22, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo25 = new LatentStyleExceptionInfo() { Name = "Emphasis", UiPriority = 20, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo26 = new LatentStyleExceptionInfo() { Name = "Table Grid", UiPriority = 59, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo27 = new LatentStyleExceptionInfo() { Name = "Placeholder Text", UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo28 = new LatentStyleExceptionInfo() { Name = "No Spacing", UiPriority = 1, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo29 = new LatentStyleExceptionInfo() { Name = "Light Shading", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo30 = new LatentStyleExceptionInfo() { Name = "Light List", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo31 = new LatentStyleExceptionInfo() { Name = "Light Grid", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo32 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo33 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo34 = new LatentStyleExceptionInfo() { Name = "Medium List 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo35 = new LatentStyleExceptionInfo() { Name = "Medium List 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo36 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo37 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo38 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo39 = new LatentStyleExceptionInfo() { Name = "Dark List", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo40 = new LatentStyleExceptionInfo() { Name = "Colorful Shading", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo41 = new LatentStyleExceptionInfo() { Name = "Colorful List", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo42 = new LatentStyleExceptionInfo() { Name = "Colorful Grid", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo43 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 1", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo44 = new LatentStyleExceptionInfo() { Name = "Light List Accent 1", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo45 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 1", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo46 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 1", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo47 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 1", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo48 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 1", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo49 = new LatentStyleExceptionInfo() { Name = "Revision", UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo50 = new LatentStyleExceptionInfo() { Name = "List Paragraph", UiPriority = 34, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo51 = new LatentStyleExceptionInfo() { Name = "Quote", UiPriority = 29, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo52 = new LatentStyleExceptionInfo() { Name = "Intense Quote", UiPriority = 30, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo53 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 1", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo54 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 1", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo55 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 1", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo56 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 1", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo57 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 1", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo58 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 1", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo59 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 1", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo60 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 1", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo61 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 2", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo62 = new LatentStyleExceptionInfo() { Name = "Light List Accent 2", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo63 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 2", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo64 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 2", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo65 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 2", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo66 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 2", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo67 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 2", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo68 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 2", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo69 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 2", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo70 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 2", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo71 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 2", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo72 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 2", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo73 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 2", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo74 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 2", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo75 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 3", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo76 = new LatentStyleExceptionInfo() { Name = "Light List Accent 3", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo77 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 3", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo78 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 3", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo79 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 3", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo80 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 3", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo81 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 3", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo82 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 3", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo83 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 3", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo84 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 3", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo85 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 3", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo86 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 3", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo87 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 3", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo88 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 3", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo89 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 4", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo90 = new LatentStyleExceptionInfo() { Name = "Light List Accent 4", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo91 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 4", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo92 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 4", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo93 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 4", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo94 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 4", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo95 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 4", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo96 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 4", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo97 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 4", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo98 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 4", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo99 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 4", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo100 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 4", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo101 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 4", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo102 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 4", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo103 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 5", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo104 = new LatentStyleExceptionInfo() { Name = "Light List Accent 5", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo105 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 5", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo106 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 5", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo107 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 5", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo108 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 5", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo109 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 5", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo110 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 5", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo111 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 5", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo112 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 5", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo113 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 5", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo114 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 5", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo115 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 5", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo116 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 5", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo117 = new LatentStyleExceptionInfo() { Name = "Light Shading Accent 6", UiPriority = 60, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo118 = new LatentStyleExceptionInfo() { Name = "Light List Accent 6", UiPriority = 61, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo119 = new LatentStyleExceptionInfo() { Name = "Light Grid Accent 6", UiPriority = 62, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo120 = new LatentStyleExceptionInfo() { Name = "Medium Shading 1 Accent 6", UiPriority = 63, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo121 = new LatentStyleExceptionInfo() { Name = "Medium Shading 2 Accent 6", UiPriority = 64, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo122 = new LatentStyleExceptionInfo() { Name = "Medium List 1 Accent 6", UiPriority = 65, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo123 = new LatentStyleExceptionInfo() { Name = "Medium List 2 Accent 6", UiPriority = 66, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo124 = new LatentStyleExceptionInfo() { Name = "Medium Grid 1 Accent 6", UiPriority = 67, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo125 = new LatentStyleExceptionInfo() { Name = "Medium Grid 2 Accent 6", UiPriority = 68, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo126 = new LatentStyleExceptionInfo() { Name = "Medium Grid 3 Accent 6", UiPriority = 69, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo127 = new LatentStyleExceptionInfo() { Name = "Dark List Accent 6", UiPriority = 70, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo128 = new LatentStyleExceptionInfo() { Name = "Colorful Shading Accent 6", UiPriority = 71, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo129 = new LatentStyleExceptionInfo() { Name = "Colorful List Accent 6", UiPriority = 72, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo130 = new LatentStyleExceptionInfo() { Name = "Colorful Grid Accent 6", UiPriority = 73, SemiHidden = false, UnhideWhenUsed = false };
            LatentStyleExceptionInfo latentStyleExceptionInfo131 = new LatentStyleExceptionInfo() { Name = "Subtle Emphasis", UiPriority = 19, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo132 = new LatentStyleExceptionInfo() { Name = "Intense Emphasis", UiPriority = 21, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo133 = new LatentStyleExceptionInfo() { Name = "Subtle Reference", UiPriority = 31, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo134 = new LatentStyleExceptionInfo() { Name = "Intense Reference", UiPriority = 32, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo135 = new LatentStyleExceptionInfo() { Name = "Book Title", UiPriority = 33, SemiHidden = false, UnhideWhenUsed = false, PrimaryStyle = true };
            LatentStyleExceptionInfo latentStyleExceptionInfo136 = new LatentStyleExceptionInfo() { Name = "Bibliography", UiPriority = 37 };
            LatentStyleExceptionInfo latentStyleExceptionInfo137 = new LatentStyleExceptionInfo() { Name = "TOC Heading", UiPriority = 39, PrimaryStyle = true };

            latentStyles1.Append(latentStyleExceptionInfo1);
            latentStyles1.Append(latentStyleExceptionInfo2);
            latentStyles1.Append(latentStyleExceptionInfo3);
            latentStyles1.Append(latentStyleExceptionInfo4);
            latentStyles1.Append(latentStyleExceptionInfo5);
            latentStyles1.Append(latentStyleExceptionInfo6);
            latentStyles1.Append(latentStyleExceptionInfo7);
            latentStyles1.Append(latentStyleExceptionInfo8);
            latentStyles1.Append(latentStyleExceptionInfo9);
            latentStyles1.Append(latentStyleExceptionInfo10);
            latentStyles1.Append(latentStyleExceptionInfo11);
            latentStyles1.Append(latentStyleExceptionInfo12);
            latentStyles1.Append(latentStyleExceptionInfo13);
            latentStyles1.Append(latentStyleExceptionInfo14);
            latentStyles1.Append(latentStyleExceptionInfo15);
            latentStyles1.Append(latentStyleExceptionInfo16);
            latentStyles1.Append(latentStyleExceptionInfo17);
            latentStyles1.Append(latentStyleExceptionInfo18);
            latentStyles1.Append(latentStyleExceptionInfo19);
            latentStyles1.Append(latentStyleExceptionInfo20);
            latentStyles1.Append(latentStyleExceptionInfo21);
            latentStyles1.Append(latentStyleExceptionInfo22);
            latentStyles1.Append(latentStyleExceptionInfo23);
            latentStyles1.Append(latentStyleExceptionInfo24);
            latentStyles1.Append(latentStyleExceptionInfo25);
            latentStyles1.Append(latentStyleExceptionInfo26);
            latentStyles1.Append(latentStyleExceptionInfo27);
            latentStyles1.Append(latentStyleExceptionInfo28);
            latentStyles1.Append(latentStyleExceptionInfo29);
            latentStyles1.Append(latentStyleExceptionInfo30);
            latentStyles1.Append(latentStyleExceptionInfo31);
            latentStyles1.Append(latentStyleExceptionInfo32);
            latentStyles1.Append(latentStyleExceptionInfo33);
            latentStyles1.Append(latentStyleExceptionInfo34);
            latentStyles1.Append(latentStyleExceptionInfo35);
            latentStyles1.Append(latentStyleExceptionInfo36);
            latentStyles1.Append(latentStyleExceptionInfo37);
            latentStyles1.Append(latentStyleExceptionInfo38);
            latentStyles1.Append(latentStyleExceptionInfo39);
            latentStyles1.Append(latentStyleExceptionInfo40);
            latentStyles1.Append(latentStyleExceptionInfo41);
            latentStyles1.Append(latentStyleExceptionInfo42);
            latentStyles1.Append(latentStyleExceptionInfo43);
            latentStyles1.Append(latentStyleExceptionInfo44);
            latentStyles1.Append(latentStyleExceptionInfo45);
            latentStyles1.Append(latentStyleExceptionInfo46);
            latentStyles1.Append(latentStyleExceptionInfo47);
            latentStyles1.Append(latentStyleExceptionInfo48);
            latentStyles1.Append(latentStyleExceptionInfo49);
            latentStyles1.Append(latentStyleExceptionInfo50);
            latentStyles1.Append(latentStyleExceptionInfo51);
            latentStyles1.Append(latentStyleExceptionInfo52);
            latentStyles1.Append(latentStyleExceptionInfo53);
            latentStyles1.Append(latentStyleExceptionInfo54);
            latentStyles1.Append(latentStyleExceptionInfo55);
            latentStyles1.Append(latentStyleExceptionInfo56);
            latentStyles1.Append(latentStyleExceptionInfo57);
            latentStyles1.Append(latentStyleExceptionInfo58);
            latentStyles1.Append(latentStyleExceptionInfo59);
            latentStyles1.Append(latentStyleExceptionInfo60);
            latentStyles1.Append(latentStyleExceptionInfo61);
            latentStyles1.Append(latentStyleExceptionInfo62);
            latentStyles1.Append(latentStyleExceptionInfo63);
            latentStyles1.Append(latentStyleExceptionInfo64);
            latentStyles1.Append(latentStyleExceptionInfo65);
            latentStyles1.Append(latentStyleExceptionInfo66);
            latentStyles1.Append(latentStyleExceptionInfo67);
            latentStyles1.Append(latentStyleExceptionInfo68);
            latentStyles1.Append(latentStyleExceptionInfo69);
            latentStyles1.Append(latentStyleExceptionInfo70);
            latentStyles1.Append(latentStyleExceptionInfo71);
            latentStyles1.Append(latentStyleExceptionInfo72);
            latentStyles1.Append(latentStyleExceptionInfo73);
            latentStyles1.Append(latentStyleExceptionInfo74);
            latentStyles1.Append(latentStyleExceptionInfo75);
            latentStyles1.Append(latentStyleExceptionInfo76);
            latentStyles1.Append(latentStyleExceptionInfo77);
            latentStyles1.Append(latentStyleExceptionInfo78);
            latentStyles1.Append(latentStyleExceptionInfo79);
            latentStyles1.Append(latentStyleExceptionInfo80);
            latentStyles1.Append(latentStyleExceptionInfo81);
            latentStyles1.Append(latentStyleExceptionInfo82);
            latentStyles1.Append(latentStyleExceptionInfo83);
            latentStyles1.Append(latentStyleExceptionInfo84);
            latentStyles1.Append(latentStyleExceptionInfo85);
            latentStyles1.Append(latentStyleExceptionInfo86);
            latentStyles1.Append(latentStyleExceptionInfo87);
            latentStyles1.Append(latentStyleExceptionInfo88);
            latentStyles1.Append(latentStyleExceptionInfo89);
            latentStyles1.Append(latentStyleExceptionInfo90);
            latentStyles1.Append(latentStyleExceptionInfo91);
            latentStyles1.Append(latentStyleExceptionInfo92);
            latentStyles1.Append(latentStyleExceptionInfo93);
            latentStyles1.Append(latentStyleExceptionInfo94);
            latentStyles1.Append(latentStyleExceptionInfo95);
            latentStyles1.Append(latentStyleExceptionInfo96);
            latentStyles1.Append(latentStyleExceptionInfo97);
            latentStyles1.Append(latentStyleExceptionInfo98);
            latentStyles1.Append(latentStyleExceptionInfo99);
            latentStyles1.Append(latentStyleExceptionInfo100);
            latentStyles1.Append(latentStyleExceptionInfo101);
            latentStyles1.Append(latentStyleExceptionInfo102);
            latentStyles1.Append(latentStyleExceptionInfo103);
            latentStyles1.Append(latentStyleExceptionInfo104);
            latentStyles1.Append(latentStyleExceptionInfo105);
            latentStyles1.Append(latentStyleExceptionInfo106);
            latentStyles1.Append(latentStyleExceptionInfo107);
            latentStyles1.Append(latentStyleExceptionInfo108);
            latentStyles1.Append(latentStyleExceptionInfo109);
            latentStyles1.Append(latentStyleExceptionInfo110);
            latentStyles1.Append(latentStyleExceptionInfo111);
            latentStyles1.Append(latentStyleExceptionInfo112);
            latentStyles1.Append(latentStyleExceptionInfo113);
            latentStyles1.Append(latentStyleExceptionInfo114);
            latentStyles1.Append(latentStyleExceptionInfo115);
            latentStyles1.Append(latentStyleExceptionInfo116);
            latentStyles1.Append(latentStyleExceptionInfo117);
            latentStyles1.Append(latentStyleExceptionInfo118);
            latentStyles1.Append(latentStyleExceptionInfo119);
            latentStyles1.Append(latentStyleExceptionInfo120);
            latentStyles1.Append(latentStyleExceptionInfo121);
            latentStyles1.Append(latentStyleExceptionInfo122);
            latentStyles1.Append(latentStyleExceptionInfo123);
            latentStyles1.Append(latentStyleExceptionInfo124);
            latentStyles1.Append(latentStyleExceptionInfo125);
            latentStyles1.Append(latentStyleExceptionInfo126);
            latentStyles1.Append(latentStyleExceptionInfo127);
            latentStyles1.Append(latentStyleExceptionInfo128);
            latentStyles1.Append(latentStyleExceptionInfo129);
            latentStyles1.Append(latentStyleExceptionInfo130);
            latentStyles1.Append(latentStyleExceptionInfo131);
            latentStyles1.Append(latentStyleExceptionInfo132);
            latentStyles1.Append(latentStyleExceptionInfo133);
            latentStyles1.Append(latentStyleExceptionInfo134);
            latentStyles1.Append(latentStyleExceptionInfo135);
            latentStyles1.Append(latentStyleExceptionInfo136);
            latentStyles1.Append(latentStyleExceptionInfo137);

            Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal", Default = true };
            StyleName styleName1 = new StyleName() { Val = "Normal" };
            PrimaryStyle primaryStyle1 = new PrimaryStyle();
            Rsid rsid1 = new Rsid() { Val = "00BA40EF" };

            StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines() { After = "0" };

            styleParagraphProperties1.Append(spacingBetweenLines2);

            style1.Append(styleName1);
            style1.Append(primaryStyle1);
            style1.Append(rsid1);
            style1.Append(styleParagraphProperties1);

            Style style2 = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading1" };
            StyleName styleName2 = new StyleName() { Val = "heading 1" };
            BasedOn basedOn1 = new BasedOn() { Val = "Normal" };
            NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" };
            LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Heading1Char" };
            UIPriority uIPriority1 = new UIPriority() { Val = 9 };
            PrimaryStyle primaryStyle2 = new PrimaryStyle();
            Rsid rsid2 = new Rsid() { Val = "0016335E" };

            StyleParagraphProperties styleParagraphProperties2 = new StyleParagraphProperties();
            KeepNext keepNext1 = new KeepNext();
            KeepLines keepLines1 = new KeepLines();
            SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines() { Before = "480" };
            OutlineLevel outlineLevel1 = new OutlineLevel() { Val = 0 };

            styleParagraphProperties2.Append(keepNext1);
            styleParagraphProperties2.Append(keepLines1);
            styleParagraphProperties2.Append(spacingBetweenLines3);
            styleParagraphProperties2.Append(outlineLevel1);

            StyleRunProperties styleRunProperties1 = new StyleRunProperties();
            RunFonts runFonts2 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold1 = new Bold();
            BoldComplexScript boldComplexScript1 = new BoldComplexScript();
            Color color1 = new Color() { Val = "365F91", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" };
            FontSize fontSize2 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "28" };

            styleRunProperties1.Append(runFonts2);
            styleRunProperties1.Append(bold1);
            styleRunProperties1.Append(boldComplexScript1);
            styleRunProperties1.Append(color1);
            styleRunProperties1.Append(fontSize2);
            styleRunProperties1.Append(fontSizeComplexScript2);

            style2.Append(styleName2);
            style2.Append(basedOn1);
            style2.Append(nextParagraphStyle1);
            style2.Append(linkedStyle1);
            style2.Append(uIPriority1);
            style2.Append(primaryStyle2);
            style2.Append(rsid2);
            style2.Append(styleParagraphProperties2);
            style2.Append(styleRunProperties1);

            Style style3 = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading2" };
            StyleName styleName3 = new StyleName() { Val = "heading 2" };
            BasedOn basedOn2 = new BasedOn() { Val = "Normal" };
            NextParagraphStyle nextParagraphStyle2 = new NextParagraphStyle() { Val = "Normal" };
            LinkedStyle linkedStyle2 = new LinkedStyle() { Val = "Heading2Char" };
            UIPriority uIPriority2 = new UIPriority() { Val = 9 };
            UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed();
            PrimaryStyle primaryStyle3 = new PrimaryStyle();
            Rsid rsid3 = new Rsid() { Val = "0016335E" };

            StyleParagraphProperties styleParagraphProperties3 = new StyleParagraphProperties();
            KeepNext keepNext2 = new KeepNext();
            KeepLines keepLines2 = new KeepLines();
            SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines() { Before = "200" };
            OutlineLevel outlineLevel2 = new OutlineLevel() { Val = 1 };

            styleParagraphProperties3.Append(keepNext2);
            styleParagraphProperties3.Append(keepLines2);
            styleParagraphProperties3.Append(spacingBetweenLines4);
            styleParagraphProperties3.Append(outlineLevel2);

            StyleRunProperties styleRunProperties2 = new StyleRunProperties();
            RunFonts runFonts3 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold2 = new Bold();
            BoldComplexScript boldComplexScript2 = new BoldComplexScript();
            Color color2 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 };
            FontSize fontSize3 = new FontSize() { Val = "26" };
            FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "26" };

            styleRunProperties2.Append(runFonts3);
            styleRunProperties2.Append(bold2);
            styleRunProperties2.Append(boldComplexScript2);
            styleRunProperties2.Append(color2);
            styleRunProperties2.Append(fontSize3);
            styleRunProperties2.Append(fontSizeComplexScript3);

            style3.Append(styleName3);
            style3.Append(basedOn2);
            style3.Append(nextParagraphStyle2);
            style3.Append(linkedStyle2);
            style3.Append(uIPriority2);
            style3.Append(unhideWhenUsed1);
            style3.Append(primaryStyle3);
            style3.Append(rsid3);
            style3.Append(styleParagraphProperties3);
            style3.Append(styleRunProperties2);

            Style style4 = new Style() { Type = StyleValues.Paragraph, StyleId = "Heading3" };
            StyleName styleName4 = new StyleName() { Val = "heading 3" };
            BasedOn basedOn3 = new BasedOn() { Val = "Normal" };
            NextParagraphStyle nextParagraphStyle3 = new NextParagraphStyle() { Val = "Normal" };
            LinkedStyle linkedStyle3 = new LinkedStyle() { Val = "Heading3Char" };
            UIPriority uIPriority3 = new UIPriority() { Val = 9 };
            UnhideWhenUsed unhideWhenUsed2 = new UnhideWhenUsed();
            PrimaryStyle primaryStyle4 = new PrimaryStyle();
            Rsid rsid4 = new Rsid() { Val = "0016335E" };

            StyleParagraphProperties styleParagraphProperties4 = new StyleParagraphProperties();
            KeepNext keepNext3 = new KeepNext();
            KeepLines keepLines3 = new KeepLines();
            SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines() { Before = "200" };
            OutlineLevel outlineLevel3 = new OutlineLevel() { Val = 2 };

            styleParagraphProperties4.Append(keepNext3);
            styleParagraphProperties4.Append(keepLines3);
            styleParagraphProperties4.Append(spacingBetweenLines5);
            styleParagraphProperties4.Append(outlineLevel3);

            StyleRunProperties styleRunProperties3 = new StyleRunProperties();
            RunFonts runFonts4 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold3 = new Bold();
            BoldComplexScript boldComplexScript3 = new BoldComplexScript();
            Color color3 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 };

            styleRunProperties3.Append(runFonts4);
            styleRunProperties3.Append(bold3);
            styleRunProperties3.Append(boldComplexScript3);
            styleRunProperties3.Append(color3);

            style4.Append(styleName4);
            style4.Append(basedOn3);
            style4.Append(nextParagraphStyle3);
            style4.Append(linkedStyle3);
            style4.Append(uIPriority3);
            style4.Append(unhideWhenUsed2);
            style4.Append(primaryStyle4);
            style4.Append(rsid4);
            style4.Append(styleParagraphProperties4);
            style4.Append(styleRunProperties3);

            Style style5 = new Style() { Type = StyleValues.Character, StyleId = "DefaultParagraphFont", Default = true };
            StyleName styleName5 = new StyleName() { Val = "Default Paragraph Font" };
            UIPriority uIPriority4 = new UIPriority() { Val = 1 };
            SemiHidden semiHidden1 = new SemiHidden();
            UnhideWhenUsed unhideWhenUsed3 = new UnhideWhenUsed();

            style5.Append(styleName5);
            style5.Append(uIPriority4);
            style5.Append(semiHidden1);
            style5.Append(unhideWhenUsed3);

            Style style6 = new Style() { Type = StyleValues.Table, StyleId = "TableNormal", Default = true };
            StyleName styleName6 = new StyleName() { Val = "Normal Table" };
            UIPriority uIPriority5 = new UIPriority() { Val = 99 };
            SemiHidden semiHidden2 = new SemiHidden();
            UnhideWhenUsed unhideWhenUsed4 = new UnhideWhenUsed();
            PrimaryStyle primaryStyle5 = new PrimaryStyle();

            StyleTableProperties styleTableProperties1 = new StyleTableProperties();
            TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };

            TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault();
            TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellLeftMargin tableCellLeftMargin1 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa };
            BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa };

            tableCellMarginDefault1.Append(topMargin1);
            tableCellMarginDefault1.Append(tableCellLeftMargin1);
            tableCellMarginDefault1.Append(bottomMargin1);
            tableCellMarginDefault1.Append(tableCellRightMargin1);

            styleTableProperties1.Append(tableIndentation1);
            styleTableProperties1.Append(tableCellMarginDefault1);

            style6.Append(styleName6);
            style6.Append(uIPriority5);
            style6.Append(semiHidden2);
            style6.Append(unhideWhenUsed4);
            style6.Append(primaryStyle5);
            style6.Append(styleTableProperties1);

            Style style7 = new Style() { Type = StyleValues.Numbering, StyleId = "NoList", Default = true };
            StyleName styleName7 = new StyleName() { Val = "No List" };
            UIPriority uIPriority6 = new UIPriority() { Val = 99 };
            SemiHidden semiHidden3 = new SemiHidden();
            UnhideWhenUsed unhideWhenUsed5 = new UnhideWhenUsed();

            style7.Append(styleName7);
            style7.Append(uIPriority6);
            style7.Append(semiHidden3);
            style7.Append(unhideWhenUsed5);

            Style style8 = new Style() { Type = StyleValues.Character, StyleId = "Heading1Char", CustomStyle = true };
            StyleName styleName8 = new StyleName() { Val = "Heading 1 Char" };
            BasedOn basedOn4 = new BasedOn() { Val = "DefaultParagraphFont" };
            LinkedStyle linkedStyle4 = new LinkedStyle() { Val = "Heading1" };
            UIPriority uIPriority7 = new UIPriority() { Val = 9 };
            Rsid rsid5 = new Rsid() { Val = "0016335E" };

            StyleRunProperties styleRunProperties4 = new StyleRunProperties();
            RunFonts runFonts5 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold4 = new Bold();
            BoldComplexScript boldComplexScript4 = new BoldComplexScript();
            Color color4 = new Color() { Val = "365F91", ThemeColor = ThemeColorValues.Accent1, ThemeShade = "BF" };
            FontSize fontSize4 = new FontSize() { Val = "28" };
            FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "28" };

            styleRunProperties4.Append(runFonts5);
            styleRunProperties4.Append(bold4);
            styleRunProperties4.Append(boldComplexScript4);
            styleRunProperties4.Append(color4);
            styleRunProperties4.Append(fontSize4);
            styleRunProperties4.Append(fontSizeComplexScript4);

            style8.Append(styleName8);
            style8.Append(basedOn4);
            style8.Append(linkedStyle4);
            style8.Append(uIPriority7);
            style8.Append(rsid5);
            style8.Append(styleRunProperties4);

            Style style9 = new Style() { Type = StyleValues.Character, StyleId = "Heading2Char", CustomStyle = true };
            StyleName styleName9 = new StyleName() { Val = "Heading 2 Char" };
            BasedOn basedOn5 = new BasedOn() { Val = "DefaultParagraphFont" };
            LinkedStyle linkedStyle5 = new LinkedStyle() { Val = "Heading2" };
            UIPriority uIPriority8 = new UIPriority() { Val = 9 };
            Rsid rsid6 = new Rsid() { Val = "0016335E" };

            StyleRunProperties styleRunProperties5 = new StyleRunProperties();
            RunFonts runFonts6 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold5 = new Bold();
            BoldComplexScript boldComplexScript5 = new BoldComplexScript();
            Color color5 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 };
            FontSize fontSize5 = new FontSize() { Val = "26" };
            FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "26" };

            styleRunProperties5.Append(runFonts6);
            styleRunProperties5.Append(bold5);
            styleRunProperties5.Append(boldComplexScript5);
            styleRunProperties5.Append(color5);
            styleRunProperties5.Append(fontSize5);
            styleRunProperties5.Append(fontSizeComplexScript5);

            style9.Append(styleName9);
            style9.Append(basedOn5);
            style9.Append(linkedStyle5);
            style9.Append(uIPriority8);
            style9.Append(rsid6);
            style9.Append(styleRunProperties5);

            Style style10 = new Style() { Type = StyleValues.Character, StyleId = "Heading3Char", CustomStyle = true };
            StyleName styleName10 = new StyleName() { Val = "Heading 3 Char" };
            BasedOn basedOn6 = new BasedOn() { Val = "DefaultParagraphFont" };
            LinkedStyle linkedStyle6 = new LinkedStyle() { Val = "Heading3" };
            UIPriority uIPriority9 = new UIPriority() { Val = 9 };
            Rsid rsid7 = new Rsid() { Val = "0016335E" };

            StyleRunProperties styleRunProperties6 = new StyleRunProperties();
            RunFonts runFonts7 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold6 = new Bold();
            BoldComplexScript boldComplexScript6 = new BoldComplexScript();
            Color color6 = new Color() { Val = "4F81BD", ThemeColor = ThemeColorValues.Accent1 };

            styleRunProperties6.Append(runFonts7);
            styleRunProperties6.Append(bold6);
            styleRunProperties6.Append(boldComplexScript6);
            styleRunProperties6.Append(color6);

            style10.Append(styleName10);
            style10.Append(basedOn6);
            style10.Append(linkedStyle6);
            style10.Append(uIPriority9);
            style10.Append(rsid7);
            style10.Append(styleRunProperties6);

            Style style11 = new Style() { Type = StyleValues.Table, StyleId = "TableGrid" };
            StyleName styleName11 = new StyleName() { Val = "Table Grid" };
            BasedOn basedOn7 = new BasedOn() { Val = "TableNormal" };
            UIPriority uIPriority10 = new UIPriority() { Val = 59 };
            Rsid rsid8 = new Rsid() { Val = "00BA40EF" };

            StyleParagraphProperties styleParagraphProperties5 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines6 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties5.Append(spacingBetweenLines6);

            StyleTableProperties styleTableProperties2 = new StyleTableProperties();
            TableIndentation tableIndentation2 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };

            TableBorders tableBorders1 = new TableBorders();
            TopBorder topBorder1 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U };

            tableBorders1.Append(topBorder1);
            tableBorders1.Append(leftBorder1);
            tableBorders1.Append(bottomBorder1);
            tableBorders1.Append(rightBorder1);
            tableBorders1.Append(insideHorizontalBorder1);
            tableBorders1.Append(insideVerticalBorder1);

            TableCellMarginDefault tableCellMarginDefault2 = new TableCellMarginDefault();
            TopMargin topMargin2 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellLeftMargin tableCellLeftMargin2 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa };
            BottomMargin bottomMargin2 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellRightMargin tableCellRightMargin2 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa };

            tableCellMarginDefault2.Append(topMargin2);
            tableCellMarginDefault2.Append(tableCellLeftMargin2);
            tableCellMarginDefault2.Append(bottomMargin2);
            tableCellMarginDefault2.Append(tableCellRightMargin2);

            styleTableProperties2.Append(tableIndentation2);
            styleTableProperties2.Append(tableBorders1);
            styleTableProperties2.Append(tableCellMarginDefault2);

            style11.Append(styleName11);
            style11.Append(basedOn7);
            style11.Append(uIPriority10);
            style11.Append(rsid8);
            style11.Append(styleParagraphProperties5);
            style11.Append(styleTableProperties2);

            Style style12 = new Style() { Type = StyleValues.Table, StyleId = "LightList-Accent1" };
            StyleName styleName12 = new StyleName() { Val = "Light List Accent 1" };
            BasedOn basedOn8 = new BasedOn() { Val = "TableNormal" };
            UIPriority uIPriority11 = new UIPriority() { Val = 61 };
            Rsid rsid9 = new Rsid() { Val = "00BA40EF" };

            StyleParagraphProperties styleParagraphProperties6 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines7 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties6.Append(spacingBetweenLines7);

            StyleTableProperties styleTableProperties3 = new StyleTableProperties();
            TableStyleRowBandSize tableStyleRowBandSize1 = new TableStyleRowBandSize() { Val = 1 };
            TableStyleColumnBandSize tableStyleColumnBandSize1 = new TableStyleColumnBandSize() { Val = 1 };
            TableIndentation tableIndentation3 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };

            TableBorders tableBorders2 = new TableBorders();
            TopBorder topBorder2 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder2 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder2 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder2 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableBorders2.Append(topBorder2);
            tableBorders2.Append(leftBorder2);
            tableBorders2.Append(bottomBorder2);
            tableBorders2.Append(rightBorder2);

            TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault();
            TopMargin topMargin3 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellLeftMargin tableCellLeftMargin3 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa };
            BottomMargin bottomMargin3 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellRightMargin tableCellRightMargin3 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa };

            tableCellMarginDefault3.Append(topMargin3);
            tableCellMarginDefault3.Append(tableCellLeftMargin3);
            tableCellMarginDefault3.Append(bottomMargin3);
            tableCellMarginDefault3.Append(tableCellRightMargin3);

            styleTableProperties3.Append(tableStyleRowBandSize1);
            styleTableProperties3.Append(tableStyleColumnBandSize1);
            styleTableProperties3.Append(tableIndentation3);
            styleTableProperties3.Append(tableBorders2);
            styleTableProperties3.Append(tableCellMarginDefault3);

            TableStyleProperties tableStyleProperties1 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow };

            StyleParagraphProperties styleParagraphProperties7 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines8 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties7.Append(spacingBetweenLines8);

            RunPropertiesBaseStyle runPropertiesBaseStyle2 = new RunPropertiesBaseStyle();
            Bold bold7 = new Bold();
            BoldComplexScript boldComplexScript7 = new BoldComplexScript();
            Color color7 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 };

            runPropertiesBaseStyle2.Append(bold7);
            runPropertiesBaseStyle2.Append(boldComplexScript7);
            runPropertiesBaseStyle2.Append(color7);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties1 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties1 = new TableStyleConditionalFormattingTableCellProperties();
            Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 };

            tableStyleConditionalFormattingTableCellProperties1.Append(shading1);

            tableStyleProperties1.Append(styleParagraphProperties7);
            tableStyleProperties1.Append(runPropertiesBaseStyle2);
            tableStyleProperties1.Append(tableStyleConditionalFormattingTableProperties1);
            tableStyleProperties1.Append(tableStyleConditionalFormattingTableCellProperties1);

            TableStyleProperties tableStyleProperties2 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow };

            StyleParagraphProperties styleParagraphProperties8 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines9 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties8.Append(spacingBetweenLines9);

            RunPropertiesBaseStyle runPropertiesBaseStyle3 = new RunPropertiesBaseStyle();
            Bold bold8 = new Bold();
            BoldComplexScript boldComplexScript8 = new BoldComplexScript();

            runPropertiesBaseStyle3.Append(bold8);
            runPropertiesBaseStyle3.Append(boldComplexScript8);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties2 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties2 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder topBorder3 = new TopBorder() { Val = BorderValues.Double, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)6U, Space = (UInt32Value)0U };
            LeftBorder leftBorder3 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder3 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder3 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders1.Append(topBorder3);
            tableCellBorders1.Append(leftBorder3);
            tableCellBorders1.Append(bottomBorder3);
            tableCellBorders1.Append(rightBorder3);

            tableStyleConditionalFormattingTableCellProperties2.Append(tableCellBorders1);

            tableStyleProperties2.Append(styleParagraphProperties8);
            tableStyleProperties2.Append(runPropertiesBaseStyle3);
            tableStyleProperties2.Append(tableStyleConditionalFormattingTableProperties2);
            tableStyleProperties2.Append(tableStyleConditionalFormattingTableCellProperties2);

            TableStyleProperties tableStyleProperties3 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle4 = new RunPropertiesBaseStyle();
            Bold bold9 = new Bold();
            BoldComplexScript boldComplexScript9 = new BoldComplexScript();

            runPropertiesBaseStyle4.Append(bold9);
            runPropertiesBaseStyle4.Append(boldComplexScript9);

            tableStyleProperties3.Append(runPropertiesBaseStyle4);

            TableStyleProperties tableStyleProperties4 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle5 = new RunPropertiesBaseStyle();
            Bold bold10 = new Bold();
            BoldComplexScript boldComplexScript10 = new BoldComplexScript();

            runPropertiesBaseStyle5.Append(bold10);
            runPropertiesBaseStyle5.Append(boldComplexScript10);

            tableStyleProperties4.Append(runPropertiesBaseStyle5);

            TableStyleProperties tableStyleProperties5 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties3 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties3 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders2 = new TableCellBorders();
            TopBorder topBorder4 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder4 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders2.Append(topBorder4);
            tableCellBorders2.Append(leftBorder4);
            tableCellBorders2.Append(bottomBorder4);
            tableCellBorders2.Append(rightBorder4);

            tableStyleConditionalFormattingTableCellProperties3.Append(tableCellBorders2);

            tableStyleProperties5.Append(tableStyleConditionalFormattingTableProperties3);
            tableStyleProperties5.Append(tableStyleConditionalFormattingTableCellProperties3);

            TableStyleProperties tableStyleProperties6 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties4 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties4 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders3 = new TableCellBorders();
            TopBorder topBorder5 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder5 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder5 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder5 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders3.Append(topBorder5);
            tableCellBorders3.Append(leftBorder5);
            tableCellBorders3.Append(bottomBorder5);
            tableCellBorders3.Append(rightBorder5);

            tableStyleConditionalFormattingTableCellProperties4.Append(tableCellBorders3);

            tableStyleProperties6.Append(tableStyleConditionalFormattingTableProperties4);
            tableStyleProperties6.Append(tableStyleConditionalFormattingTableCellProperties4);

            style12.Append(styleName12);
            style12.Append(basedOn8);
            style12.Append(uIPriority11);
            style12.Append(rsid9);
            style12.Append(styleParagraphProperties6);
            style12.Append(styleTableProperties3);
            style12.Append(tableStyleProperties1);
            style12.Append(tableStyleProperties2);
            style12.Append(tableStyleProperties3);
            style12.Append(tableStyleProperties4);
            style12.Append(tableStyleProperties5);
            style12.Append(tableStyleProperties6);

            Style style13 = new Style() { Type = StyleValues.Table, StyleId = "MediumGrid3-Accent1" };
            StyleName styleName13 = new StyleName() { Val = "Medium Grid 3 Accent 1" };
            BasedOn basedOn9 = new BasedOn() { Val = "TableNormal" };
            UIPriority uIPriority12 = new UIPriority() { Val = 69 };
            Rsid rsid10 = new Rsid() { Val = "00BA40EF" };

            StyleParagraphProperties styleParagraphProperties9 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines10 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties9.Append(spacingBetweenLines10);

            StyleTableProperties styleTableProperties4 = new StyleTableProperties();
            TableStyleRowBandSize tableStyleRowBandSize2 = new TableStyleRowBandSize() { Val = 1 };
            TableStyleColumnBandSize tableStyleColumnBandSize2 = new TableStyleColumnBandSize() { Val = 1 };
            TableIndentation tableIndentation4 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };

            TableBorders tableBorders3 = new TableBorders();
            TopBorder topBorder6 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder6 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder6 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder6 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder2 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)6U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder2 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)6U, Space = (UInt32Value)0U };

            tableBorders3.Append(topBorder6);
            tableBorders3.Append(leftBorder6);
            tableBorders3.Append(bottomBorder6);
            tableBorders3.Append(rightBorder6);
            tableBorders3.Append(insideHorizontalBorder2);
            tableBorders3.Append(insideVerticalBorder2);

            TableCellMarginDefault tableCellMarginDefault4 = new TableCellMarginDefault();
            TopMargin topMargin4 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellLeftMargin tableCellLeftMargin4 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa };
            BottomMargin bottomMargin4 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellRightMargin tableCellRightMargin4 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa };

            tableCellMarginDefault4.Append(topMargin4);
            tableCellMarginDefault4.Append(tableCellLeftMargin4);
            tableCellMarginDefault4.Append(bottomMargin4);
            tableCellMarginDefault4.Append(tableCellRightMargin4);

            styleTableProperties4.Append(tableStyleRowBandSize2);
            styleTableProperties4.Append(tableStyleColumnBandSize2);
            styleTableProperties4.Append(tableIndentation4);
            styleTableProperties4.Append(tableBorders3);
            styleTableProperties4.Append(tableCellMarginDefault4);

            StyleTableCellProperties styleTableCellProperties1 = new StyleTableCellProperties();
            Shading shading2 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" };

            styleTableCellProperties1.Append(shading2);

            TableStyleProperties tableStyleProperties7 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow };

            RunPropertiesBaseStyle runPropertiesBaseStyle6 = new RunPropertiesBaseStyle();
            Bold bold11 = new Bold();
            BoldComplexScript boldComplexScript11 = new BoldComplexScript();
            Italic italic1 = new Italic() { Val = false };
            ItalicComplexScript italicComplexScript1 = new ItalicComplexScript() { Val = false };
            Color color8 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 };

            runPropertiesBaseStyle6.Append(bold11);
            runPropertiesBaseStyle6.Append(boldComplexScript11);
            runPropertiesBaseStyle6.Append(italic1);
            runPropertiesBaseStyle6.Append(italicComplexScript1);
            runPropertiesBaseStyle6.Append(color8);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties5 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties5 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders4 = new TableCellBorders();
            TopBorder topBorder7 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder7 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder7 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U };
            RightBorder rightBorder7 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder3 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder3 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders4.Append(topBorder7);
            tableCellBorders4.Append(leftBorder7);
            tableCellBorders4.Append(bottomBorder7);
            tableCellBorders4.Append(rightBorder7);
            tableCellBorders4.Append(insideHorizontalBorder3);
            tableCellBorders4.Append(insideVerticalBorder3);
            Shading shading3 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 };

            tableStyleConditionalFormattingTableCellProperties5.Append(tableCellBorders4);
            tableStyleConditionalFormattingTableCellProperties5.Append(shading3);

            tableStyleProperties7.Append(runPropertiesBaseStyle6);
            tableStyleProperties7.Append(tableStyleConditionalFormattingTableProperties5);
            tableStyleProperties7.Append(tableStyleConditionalFormattingTableCellProperties5);

            TableStyleProperties tableStyleProperties8 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow };

            RunPropertiesBaseStyle runPropertiesBaseStyle7 = new RunPropertiesBaseStyle();
            Bold bold12 = new Bold();
            BoldComplexScript boldComplexScript12 = new BoldComplexScript();
            Italic italic2 = new Italic() { Val = false };
            ItalicComplexScript italicComplexScript2 = new ItalicComplexScript() { Val = false };
            Color color9 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 };

            runPropertiesBaseStyle7.Append(bold12);
            runPropertiesBaseStyle7.Append(boldComplexScript12);
            runPropertiesBaseStyle7.Append(italic2);
            runPropertiesBaseStyle7.Append(italicComplexScript2);
            runPropertiesBaseStyle7.Append(color9);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties6 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties6 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders5 = new TableCellBorders();
            TopBorder topBorder8 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U };
            LeftBorder leftBorder8 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder8 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder8 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder4 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder4 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders5.Append(topBorder8);
            tableCellBorders5.Append(leftBorder8);
            tableCellBorders5.Append(bottomBorder8);
            tableCellBorders5.Append(rightBorder8);
            tableCellBorders5.Append(insideHorizontalBorder4);
            tableCellBorders5.Append(insideVerticalBorder4);
            Shading shading4 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 };

            tableStyleConditionalFormattingTableCellProperties6.Append(tableCellBorders5);
            tableStyleConditionalFormattingTableCellProperties6.Append(shading4);

            tableStyleProperties8.Append(runPropertiesBaseStyle7);
            tableStyleProperties8.Append(tableStyleConditionalFormattingTableProperties6);
            tableStyleProperties8.Append(tableStyleConditionalFormattingTableCellProperties6);

            TableStyleProperties tableStyleProperties9 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle8 = new RunPropertiesBaseStyle();
            Bold bold13 = new Bold();
            BoldComplexScript boldComplexScript13 = new BoldComplexScript();
            Italic italic3 = new Italic() { Val = false };
            ItalicComplexScript italicComplexScript3 = new ItalicComplexScript() { Val = false };
            Color color10 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 };

            runPropertiesBaseStyle8.Append(bold13);
            runPropertiesBaseStyle8.Append(boldComplexScript13);
            runPropertiesBaseStyle8.Append(italic3);
            runPropertiesBaseStyle8.Append(italicComplexScript3);
            runPropertiesBaseStyle8.Append(color10);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties7 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties7 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders6 = new TableCellBorders();
            LeftBorder leftBorder9 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder9 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder5 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder5 = new InsideVerticalBorder() { Val = BorderValues.Nil };

            tableCellBorders6.Append(leftBorder9);
            tableCellBorders6.Append(rightBorder9);
            tableCellBorders6.Append(insideHorizontalBorder5);
            tableCellBorders6.Append(insideVerticalBorder5);
            Shading shading5 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 };

            tableStyleConditionalFormattingTableCellProperties7.Append(tableCellBorders6);
            tableStyleConditionalFormattingTableCellProperties7.Append(shading5);

            tableStyleProperties9.Append(runPropertiesBaseStyle8);
            tableStyleProperties9.Append(tableStyleConditionalFormattingTableProperties7);
            tableStyleProperties9.Append(tableStyleConditionalFormattingTableCellProperties7);

            TableStyleProperties tableStyleProperties10 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle9 = new RunPropertiesBaseStyle();
            Bold bold14 = new Bold();
            BoldComplexScript boldComplexScript14 = new BoldComplexScript();
            Italic italic4 = new Italic() { Val = false };
            ItalicComplexScript italicComplexScript4 = new ItalicComplexScript() { Val = false };
            Color color11 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 };

            runPropertiesBaseStyle9.Append(bold14);
            runPropertiesBaseStyle9.Append(boldComplexScript14);
            runPropertiesBaseStyle9.Append(italic4);
            runPropertiesBaseStyle9.Append(italicComplexScript4);
            runPropertiesBaseStyle9.Append(color11);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties8 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties8 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders7 = new TableCellBorders();
            TopBorder topBorder9 = new TopBorder() { Val = BorderValues.Nil };
            LeftBorder leftBorder10 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)24U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.Nil };
            RightBorder rightBorder10 = new RightBorder() { Val = BorderValues.Nil };
            InsideHorizontalBorder insideHorizontalBorder6 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder6 = new InsideVerticalBorder() { Val = BorderValues.Nil };

            tableCellBorders7.Append(topBorder9);
            tableCellBorders7.Append(leftBorder10);
            tableCellBorders7.Append(bottomBorder9);
            tableCellBorders7.Append(rightBorder10);
            tableCellBorders7.Append(insideHorizontalBorder6);
            tableCellBorders7.Append(insideVerticalBorder6);
            Shading shading6 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 };

            tableStyleConditionalFormattingTableCellProperties8.Append(tableCellBorders7);
            tableStyleConditionalFormattingTableCellProperties8.Append(shading6);

            tableStyleProperties10.Append(runPropertiesBaseStyle9);
            tableStyleProperties10.Append(tableStyleConditionalFormattingTableProperties8);
            tableStyleProperties10.Append(tableStyleConditionalFormattingTableCellProperties8);

            TableStyleProperties tableStyleProperties11 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties9 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties9 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders8 = new TableCellBorders();
            TopBorder topBorder10 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder11 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder10 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder11 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder7 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder7 = new InsideVerticalBorder() { Val = BorderValues.Nil };

            tableCellBorders8.Append(topBorder10);
            tableCellBorders8.Append(leftBorder11);
            tableCellBorders8.Append(bottomBorder10);
            tableCellBorders8.Append(rightBorder11);
            tableCellBorders8.Append(insideHorizontalBorder7);
            tableCellBorders8.Append(insideVerticalBorder7);
            Shading shading7 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "A7BFDE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "7F" };

            tableStyleConditionalFormattingTableCellProperties9.Append(tableCellBorders8);
            tableStyleConditionalFormattingTableCellProperties9.Append(shading7);

            tableStyleProperties11.Append(tableStyleConditionalFormattingTableProperties9);
            tableStyleProperties11.Append(tableStyleConditionalFormattingTableCellProperties9);

            TableStyleProperties tableStyleProperties12 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties10 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties10 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders9 = new TableCellBorders();
            TopBorder topBorder11 = new TopBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder12 = new LeftBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder11 = new BottomBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder12 = new RightBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder8 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder8 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "FFFFFF", ThemeColor = ThemeColorValues.Background1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders9.Append(topBorder11);
            tableCellBorders9.Append(leftBorder12);
            tableCellBorders9.Append(bottomBorder11);
            tableCellBorders9.Append(rightBorder12);
            tableCellBorders9.Append(insideHorizontalBorder8);
            tableCellBorders9.Append(insideVerticalBorder8);
            Shading shading8 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "A7BFDE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "7F" };

            tableStyleConditionalFormattingTableCellProperties10.Append(tableCellBorders9);
            tableStyleConditionalFormattingTableCellProperties10.Append(shading8);

            tableStyleProperties12.Append(tableStyleConditionalFormattingTableProperties10);
            tableStyleProperties12.Append(tableStyleConditionalFormattingTableCellProperties10);

            style13.Append(styleName13);
            style13.Append(basedOn9);
            style13.Append(uIPriority12);
            style13.Append(rsid10);
            style13.Append(styleParagraphProperties9);
            style13.Append(styleTableProperties4);
            style13.Append(styleTableCellProperties1);
            style13.Append(tableStyleProperties7);
            style13.Append(tableStyleProperties8);
            style13.Append(tableStyleProperties9);
            style13.Append(tableStyleProperties10);
            style13.Append(tableStyleProperties11);
            style13.Append(tableStyleProperties12);

            Style style14 = new Style() { Type = StyleValues.Table, StyleId = "MediumShading1-Accent1" };
            StyleName styleName14 = new StyleName() { Val = "Medium Shading 1 Accent 1" };
            BasedOn basedOn10 = new BasedOn() { Val = "TableNormal" };
            UIPriority uIPriority13 = new UIPriority() { Val = 63 };
            Rsid rsid11 = new Rsid() { Val = "00BA40EF" };

            StyleParagraphProperties styleParagraphProperties10 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines11 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties10.Append(spacingBetweenLines11);

            StyleTableProperties styleTableProperties5 = new StyleTableProperties();
            TableStyleRowBandSize tableStyleRowBandSize3 = new TableStyleRowBandSize() { Val = 1 };
            TableStyleColumnBandSize tableStyleColumnBandSize3 = new TableStyleColumnBandSize() { Val = 1 };
            TableIndentation tableIndentation5 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };

            TableBorders tableBorders4 = new TableBorders();
            TopBorder topBorder12 = new TopBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder13 = new LeftBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder12 = new BottomBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder13 = new RightBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder9 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableBorders4.Append(topBorder12);
            tableBorders4.Append(leftBorder13);
            tableBorders4.Append(bottomBorder12);
            tableBorders4.Append(rightBorder13);
            tableBorders4.Append(insideHorizontalBorder9);

            TableCellMarginDefault tableCellMarginDefault5 = new TableCellMarginDefault();
            TopMargin topMargin5 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellLeftMargin tableCellLeftMargin5 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa };
            BottomMargin bottomMargin5 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellRightMargin tableCellRightMargin5 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa };

            tableCellMarginDefault5.Append(topMargin5);
            tableCellMarginDefault5.Append(tableCellLeftMargin5);
            tableCellMarginDefault5.Append(bottomMargin5);
            tableCellMarginDefault5.Append(tableCellRightMargin5);

            styleTableProperties5.Append(tableStyleRowBandSize3);
            styleTableProperties5.Append(tableStyleColumnBandSize3);
            styleTableProperties5.Append(tableIndentation5);
            styleTableProperties5.Append(tableBorders4);
            styleTableProperties5.Append(tableCellMarginDefault5);

            TableStyleProperties tableStyleProperties13 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow };

            StyleParagraphProperties styleParagraphProperties11 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines12 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties11.Append(spacingBetweenLines12);

            RunPropertiesBaseStyle runPropertiesBaseStyle10 = new RunPropertiesBaseStyle();
            Bold bold15 = new Bold();
            BoldComplexScript boldComplexScript15 = new BoldComplexScript();
            Color color12 = new Color() { Val = "FFFFFF", ThemeColor = ThemeColorValues.Background1 };

            runPropertiesBaseStyle10.Append(bold15);
            runPropertiesBaseStyle10.Append(boldComplexScript15);
            runPropertiesBaseStyle10.Append(color12);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties11 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties11 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders10 = new TableCellBorders();
            TopBorder topBorder13 = new TopBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder14 = new LeftBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder13 = new BottomBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder14 = new RightBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder10 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder9 = new InsideVerticalBorder() { Val = BorderValues.Nil };

            tableCellBorders10.Append(topBorder13);
            tableCellBorders10.Append(leftBorder14);
            tableCellBorders10.Append(bottomBorder13);
            tableCellBorders10.Append(rightBorder14);
            tableCellBorders10.Append(insideHorizontalBorder10);
            tableCellBorders10.Append(insideVerticalBorder9);
            Shading shading9 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "4F81BD", ThemeFill = ThemeColorValues.Accent1 };

            tableStyleConditionalFormattingTableCellProperties11.Append(tableCellBorders10);
            tableStyleConditionalFormattingTableCellProperties11.Append(shading9);

            tableStyleProperties13.Append(styleParagraphProperties11);
            tableStyleProperties13.Append(runPropertiesBaseStyle10);
            tableStyleProperties13.Append(tableStyleConditionalFormattingTableProperties11);
            tableStyleProperties13.Append(tableStyleConditionalFormattingTableCellProperties11);

            TableStyleProperties tableStyleProperties14 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow };

            StyleParagraphProperties styleParagraphProperties12 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines13 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties12.Append(spacingBetweenLines13);

            RunPropertiesBaseStyle runPropertiesBaseStyle11 = new RunPropertiesBaseStyle();
            Bold bold16 = new Bold();
            BoldComplexScript boldComplexScript16 = new BoldComplexScript();

            runPropertiesBaseStyle11.Append(bold16);
            runPropertiesBaseStyle11.Append(boldComplexScript16);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties12 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties12 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders11 = new TableCellBorders();
            TopBorder topBorder14 = new TopBorder() { Val = BorderValues.Double, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)6U, Space = (UInt32Value)0U };
            LeftBorder leftBorder15 = new LeftBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder14 = new BottomBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder15 = new RightBorder() { Val = BorderValues.Single, Color = "7BA0CD", ThemeColor = ThemeColorValues.Accent1, ThemeTint = "BF", Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder11 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder10 = new InsideVerticalBorder() { Val = BorderValues.Nil };

            tableCellBorders11.Append(topBorder14);
            tableCellBorders11.Append(leftBorder15);
            tableCellBorders11.Append(bottomBorder14);
            tableCellBorders11.Append(rightBorder15);
            tableCellBorders11.Append(insideHorizontalBorder11);
            tableCellBorders11.Append(insideVerticalBorder10);

            tableStyleConditionalFormattingTableCellProperties12.Append(tableCellBorders11);

            tableStyleProperties14.Append(styleParagraphProperties12);
            tableStyleProperties14.Append(runPropertiesBaseStyle11);
            tableStyleProperties14.Append(tableStyleConditionalFormattingTableProperties12);
            tableStyleProperties14.Append(tableStyleConditionalFormattingTableCellProperties12);

            TableStyleProperties tableStyleProperties15 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle12 = new RunPropertiesBaseStyle();
            Bold bold17 = new Bold();
            BoldComplexScript boldComplexScript17 = new BoldComplexScript();

            runPropertiesBaseStyle12.Append(bold17);
            runPropertiesBaseStyle12.Append(boldComplexScript17);

            tableStyleProperties15.Append(runPropertiesBaseStyle12);

            TableStyleProperties tableStyleProperties16 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle13 = new RunPropertiesBaseStyle();
            Bold bold18 = new Bold();
            BoldComplexScript boldComplexScript18 = new BoldComplexScript();

            runPropertiesBaseStyle13.Append(bold18);
            runPropertiesBaseStyle13.Append(boldComplexScript18);

            tableStyleProperties16.Append(runPropertiesBaseStyle13);

            TableStyleProperties tableStyleProperties17 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties13 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties13 = new TableStyleConditionalFormattingTableCellProperties();
            Shading shading10 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" };

            tableStyleConditionalFormattingTableCellProperties13.Append(shading10);

            tableStyleProperties17.Append(tableStyleConditionalFormattingTableProperties13);
            tableStyleProperties17.Append(tableStyleConditionalFormattingTableCellProperties13);

            TableStyleProperties tableStyleProperties18 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties14 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties14 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders12 = new TableCellBorders();
            InsideHorizontalBorder insideHorizontalBorder12 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder11 = new InsideVerticalBorder() { Val = BorderValues.Nil };

            tableCellBorders12.Append(insideHorizontalBorder12);
            tableCellBorders12.Append(insideVerticalBorder11);
            Shading shading11 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" };

            tableStyleConditionalFormattingTableCellProperties14.Append(tableCellBorders12);
            tableStyleConditionalFormattingTableCellProperties14.Append(shading11);

            tableStyleProperties18.Append(tableStyleConditionalFormattingTableProperties14);
            tableStyleProperties18.Append(tableStyleConditionalFormattingTableCellProperties14);

            TableStyleProperties tableStyleProperties19 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band2Horizontal };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties15 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties15 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders13 = new TableCellBorders();
            InsideHorizontalBorder insideHorizontalBorder13 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder12 = new InsideVerticalBorder() { Val = BorderValues.Nil };

            tableCellBorders13.Append(insideHorizontalBorder13);
            tableCellBorders13.Append(insideVerticalBorder12);

            tableStyleConditionalFormattingTableCellProperties15.Append(tableCellBorders13);

            tableStyleProperties19.Append(tableStyleConditionalFormattingTableProperties15);
            tableStyleProperties19.Append(tableStyleConditionalFormattingTableCellProperties15);

            style14.Append(styleName14);
            style14.Append(basedOn10);
            style14.Append(uIPriority13);
            style14.Append(rsid11);
            style14.Append(styleParagraphProperties10);
            style14.Append(styleTableProperties5);
            style14.Append(tableStyleProperties13);
            style14.Append(tableStyleProperties14);
            style14.Append(tableStyleProperties15);
            style14.Append(tableStyleProperties16);
            style14.Append(tableStyleProperties17);
            style14.Append(tableStyleProperties18);
            style14.Append(tableStyleProperties19);

            Style style15 = new Style() { Type = StyleValues.Table, StyleId = "LightGrid-Accent1" };
            StyleName styleName15 = new StyleName() { Val = "Light Grid Accent 1" };
            BasedOn basedOn11 = new BasedOn() { Val = "TableNormal" };
            UIPriority uIPriority14 = new UIPriority() { Val = 62 };
            Rsid rsid12 = new Rsid() { Val = "00BA40EF" };

            StyleParagraphProperties styleParagraphProperties13 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines14 = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties13.Append(spacingBetweenLines14);

            StyleTableProperties styleTableProperties6 = new StyleTableProperties();
            TableStyleRowBandSize tableStyleRowBandSize4 = new TableStyleRowBandSize() { Val = 1 };
            TableStyleColumnBandSize tableStyleColumnBandSize4 = new TableStyleColumnBandSize() { Val = 1 };
            TableIndentation tableIndentation6 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa };

            TableBorders tableBorders5 = new TableBorders();
            TopBorder topBorder15 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder16 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder15 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder16 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder14 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder13 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableBorders5.Append(topBorder15);
            tableBorders5.Append(leftBorder16);
            tableBorders5.Append(bottomBorder15);
            tableBorders5.Append(rightBorder16);
            tableBorders5.Append(insideHorizontalBorder14);
            tableBorders5.Append(insideVerticalBorder13);

            TableCellMarginDefault tableCellMarginDefault6 = new TableCellMarginDefault();
            TopMargin topMargin6 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellLeftMargin tableCellLeftMargin6 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa };
            BottomMargin bottomMargin6 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa };
            TableCellRightMargin tableCellRightMargin6 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa };

            tableCellMarginDefault6.Append(topMargin6);
            tableCellMarginDefault6.Append(tableCellLeftMargin6);
            tableCellMarginDefault6.Append(bottomMargin6);
            tableCellMarginDefault6.Append(tableCellRightMargin6);

            styleTableProperties6.Append(tableStyleRowBandSize4);
            styleTableProperties6.Append(tableStyleColumnBandSize4);
            styleTableProperties6.Append(tableIndentation6);
            styleTableProperties6.Append(tableBorders5);
            styleTableProperties6.Append(tableCellMarginDefault6);

            TableStyleProperties tableStyleProperties20 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstRow };

            StyleParagraphProperties styleParagraphProperties14 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines15 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties14.Append(spacingBetweenLines15);

            RunPropertiesBaseStyle runPropertiesBaseStyle14 = new RunPropertiesBaseStyle();
            RunFonts runFonts8 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold19 = new Bold();
            BoldComplexScript boldComplexScript19 = new BoldComplexScript();

            runPropertiesBaseStyle14.Append(runFonts8);
            runPropertiesBaseStyle14.Append(bold19);
            runPropertiesBaseStyle14.Append(boldComplexScript19);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties16 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties16 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders14 = new TableCellBorders();
            TopBorder topBorder16 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder17 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder16 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)18U, Space = (UInt32Value)0U };
            RightBorder rightBorder17 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder15 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder14 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders14.Append(topBorder16);
            tableCellBorders14.Append(leftBorder17);
            tableCellBorders14.Append(bottomBorder16);
            tableCellBorders14.Append(rightBorder17);
            tableCellBorders14.Append(insideHorizontalBorder15);
            tableCellBorders14.Append(insideVerticalBorder14);

            tableStyleConditionalFormattingTableCellProperties16.Append(tableCellBorders14);

            tableStyleProperties20.Append(styleParagraphProperties14);
            tableStyleProperties20.Append(runPropertiesBaseStyle14);
            tableStyleProperties20.Append(tableStyleConditionalFormattingTableProperties16);
            tableStyleProperties20.Append(tableStyleConditionalFormattingTableCellProperties16);

            TableStyleProperties tableStyleProperties21 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastRow };

            StyleParagraphProperties styleParagraphProperties15 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { Before = "0", After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties15.Append(spacingBetweenLines16);

            RunPropertiesBaseStyle runPropertiesBaseStyle15 = new RunPropertiesBaseStyle();
            RunFonts runFonts9 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold20 = new Bold();
            BoldComplexScript boldComplexScript20 = new BoldComplexScript();

            runPropertiesBaseStyle15.Append(runFonts9);
            runPropertiesBaseStyle15.Append(bold20);
            runPropertiesBaseStyle15.Append(boldComplexScript20);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties17 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties17 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders15 = new TableCellBorders();
            TopBorder topBorder17 = new TopBorder() { Val = BorderValues.Double, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)6U, Space = (UInt32Value)0U };
            LeftBorder leftBorder18 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder17 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder18 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder16 = new InsideHorizontalBorder() { Val = BorderValues.Nil };
            InsideVerticalBorder insideVerticalBorder15 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders15.Append(topBorder17);
            tableCellBorders15.Append(leftBorder18);
            tableCellBorders15.Append(bottomBorder17);
            tableCellBorders15.Append(rightBorder18);
            tableCellBorders15.Append(insideHorizontalBorder16);
            tableCellBorders15.Append(insideVerticalBorder15);

            tableStyleConditionalFormattingTableCellProperties17.Append(tableCellBorders15);

            tableStyleProperties21.Append(styleParagraphProperties15);
            tableStyleProperties21.Append(runPropertiesBaseStyle15);
            tableStyleProperties21.Append(tableStyleConditionalFormattingTableProperties17);
            tableStyleProperties21.Append(tableStyleConditionalFormattingTableCellProperties17);

            TableStyleProperties tableStyleProperties22 = new TableStyleProperties() { Type = TableStyleOverrideValues.FirstColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle16 = new RunPropertiesBaseStyle();
            RunFonts runFonts10 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold21 = new Bold();
            BoldComplexScript boldComplexScript21 = new BoldComplexScript();

            runPropertiesBaseStyle16.Append(runFonts10);
            runPropertiesBaseStyle16.Append(bold21);
            runPropertiesBaseStyle16.Append(boldComplexScript21);

            tableStyleProperties22.Append(runPropertiesBaseStyle16);

            TableStyleProperties tableStyleProperties23 = new TableStyleProperties() { Type = TableStyleOverrideValues.LastColumn };

            RunPropertiesBaseStyle runPropertiesBaseStyle17 = new RunPropertiesBaseStyle();
            RunFonts runFonts11 = new RunFonts() { AsciiTheme = ThemeFontValues.MajorHighAnsi, HighAnsiTheme = ThemeFontValues.MajorHighAnsi, EastAsiaTheme = ThemeFontValues.MajorEastAsia, ComplexScriptTheme = ThemeFontValues.MajorBidi };
            Bold bold22 = new Bold();
            BoldComplexScript boldComplexScript22 = new BoldComplexScript();

            runPropertiesBaseStyle17.Append(runFonts11);
            runPropertiesBaseStyle17.Append(bold22);
            runPropertiesBaseStyle17.Append(boldComplexScript22);
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties18 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties18 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders16 = new TableCellBorders();
            TopBorder topBorder18 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder19 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder18 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder19 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders16.Append(topBorder18);
            tableCellBorders16.Append(leftBorder19);
            tableCellBorders16.Append(bottomBorder18);
            tableCellBorders16.Append(rightBorder19);

            tableStyleConditionalFormattingTableCellProperties18.Append(tableCellBorders16);

            tableStyleProperties23.Append(runPropertiesBaseStyle17);
            tableStyleProperties23.Append(tableStyleConditionalFormattingTableProperties18);
            tableStyleProperties23.Append(tableStyleConditionalFormattingTableCellProperties18);

            TableStyleProperties tableStyleProperties24 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Vertical };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties19 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties19 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders17 = new TableCellBorders();
            TopBorder topBorder19 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder20 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder19 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder20 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders17.Append(topBorder19);
            tableCellBorders17.Append(leftBorder20);
            tableCellBorders17.Append(bottomBorder19);
            tableCellBorders17.Append(rightBorder20);
            Shading shading12 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" };

            tableStyleConditionalFormattingTableCellProperties19.Append(tableCellBorders17);
            tableStyleConditionalFormattingTableCellProperties19.Append(shading12);

            tableStyleProperties24.Append(tableStyleConditionalFormattingTableProperties19);
            tableStyleProperties24.Append(tableStyleConditionalFormattingTableCellProperties19);

            TableStyleProperties tableStyleProperties25 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band1Horizontal };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties20 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties20 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders18 = new TableCellBorders();
            TopBorder topBorder20 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder21 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder20 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder21 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder16 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders18.Append(topBorder20);
            tableCellBorders18.Append(leftBorder21);
            tableCellBorders18.Append(bottomBorder20);
            tableCellBorders18.Append(rightBorder21);
            tableCellBorders18.Append(insideVerticalBorder16);
            Shading shading13 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "D3DFEE", ThemeFill = ThemeColorValues.Accent1, ThemeFillTint = "3F" };

            tableStyleConditionalFormattingTableCellProperties20.Append(tableCellBorders18);
            tableStyleConditionalFormattingTableCellProperties20.Append(shading13);

            tableStyleProperties25.Append(tableStyleConditionalFormattingTableProperties20);
            tableStyleProperties25.Append(tableStyleConditionalFormattingTableCellProperties20);

            TableStyleProperties tableStyleProperties26 = new TableStyleProperties() { Type = TableStyleOverrideValues.Band2Horizontal };
            TableStyleConditionalFormattingTableProperties tableStyleConditionalFormattingTableProperties21 = new TableStyleConditionalFormattingTableProperties();

            TableStyleConditionalFormattingTableCellProperties tableStyleConditionalFormattingTableCellProperties21 = new TableStyleConditionalFormattingTableCellProperties();

            TableCellBorders tableCellBorders19 = new TableCellBorders();
            TopBorder topBorder21 = new TopBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            LeftBorder leftBorder22 = new LeftBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder21 = new BottomBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            RightBorder rightBorder22 = new RightBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder17 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "4F81BD", ThemeColor = ThemeColorValues.Accent1, Size = (UInt32Value)8U, Space = (UInt32Value)0U };

            tableCellBorders19.Append(topBorder21);
            tableCellBorders19.Append(leftBorder22);
            tableCellBorders19.Append(bottomBorder21);
            tableCellBorders19.Append(rightBorder22);
            tableCellBorders19.Append(insideVerticalBorder17);

            tableStyleConditionalFormattingTableCellProperties21.Append(tableCellBorders19);

            tableStyleProperties26.Append(tableStyleConditionalFormattingTableProperties21);
            tableStyleProperties26.Append(tableStyleConditionalFormattingTableCellProperties21);

            style15.Append(styleName15);
            style15.Append(basedOn11);
            style15.Append(uIPriority14);
            style15.Append(rsid12);
            style15.Append(styleParagraphProperties13);
            style15.Append(styleTableProperties6);
            style15.Append(tableStyleProperties20);
            style15.Append(tableStyleProperties21);
            style15.Append(tableStyleProperties22);
            style15.Append(tableStyleProperties23);
            style15.Append(tableStyleProperties24);
            style15.Append(tableStyleProperties25);
            style15.Append(tableStyleProperties26);

            Style style16 = new Style() { Type = StyleValues.Paragraph, StyleId = "Quote" };
            StyleName styleName16 = new StyleName() { Val = "Quote" };
            BasedOn basedOn12 = new BasedOn() { Val = "Normal" };
            NextParagraphStyle nextParagraphStyle4 = new NextParagraphStyle() { Val = "Normal" };
            LinkedStyle linkedStyle7 = new LinkedStyle() { Val = "QuoteChar" };
            UIPriority uIPriority15 = new UIPriority() { Val = 29 };
            PrimaryStyle primaryStyle6 = new PrimaryStyle();
            Rsid rsid13 = new Rsid() { Val = "00851582" };

            StyleParagraphProperties styleParagraphProperties16 = new StyleParagraphProperties();

            ParagraphBorders paragraphBorders1 = new ParagraphBorders();
            TopBorder topBorder22 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)1U };
            LeftBorder leftBorder23 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)4U };
            BottomBorder bottomBorder22 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)1U };
            RightBorder rightBorder23 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)4U };

            paragraphBorders1.Append(topBorder22);
            paragraphBorders1.Append(leftBorder23);
            paragraphBorders1.Append(bottomBorder22);
            paragraphBorders1.Append(rightBorder23);

            styleParagraphProperties16.Append(paragraphBorders1);

            StyleRunProperties styleRunProperties7 = new StyleRunProperties();
            Italic italic5 = new Italic();
            ItalicComplexScript italicComplexScript5 = new ItalicComplexScript();
            Color color13 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            styleRunProperties7.Append(italic5);
            styleRunProperties7.Append(italicComplexScript5);
            styleRunProperties7.Append(color13);

            style16.Append(styleName16);
            style16.Append(basedOn12);
            style16.Append(nextParagraphStyle4);
            style16.Append(linkedStyle7);
            style16.Append(uIPriority15);
            style16.Append(primaryStyle6);
            style16.Append(rsid13);
            style16.Append(styleParagraphProperties16);
            style16.Append(styleRunProperties7);

            Style style17 = new Style() { Type = StyleValues.Character, StyleId = "QuoteChar", CustomStyle = true };
            StyleName styleName17 = new StyleName() { Val = "Quote Char" };
            BasedOn basedOn13 = new BasedOn() { Val = "DefaultParagraphFont" };
            LinkedStyle linkedStyle8 = new LinkedStyle() { Val = "Quote" };
            UIPriority uIPriority16 = new UIPriority() { Val = 29 };
            Rsid rsid14 = new Rsid() { Val = "00851582" };

            StyleRunProperties styleRunProperties8 = new StyleRunProperties();
            Italic italic6 = new Italic();
            ItalicComplexScript italicComplexScript6 = new ItalicComplexScript();
            Color color14 = new Color() { Val = "000000", ThemeColor = ThemeColorValues.Text1 };

            styleRunProperties8.Append(italic6);
            styleRunProperties8.Append(italicComplexScript6);
            styleRunProperties8.Append(color14);

            style17.Append(styleName17);
            style17.Append(basedOn13);
            style17.Append(linkedStyle8);
            style17.Append(uIPriority16);
            style17.Append(rsid14);
            style17.Append(styleRunProperties8);

            Style style18 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOCHeading" };
            StyleName styleName18 = new StyleName() { Val = "TOC Heading" };
            BasedOn basedOn14 = new BasedOn() { Val = "Heading1" };
            NextParagraphStyle nextParagraphStyle5 = new NextParagraphStyle() { Val = "Normal" };
            UIPriority uIPriority17 = new UIPriority() { Val = 39 };
            SemiHidden semiHidden4 = new SemiHidden();
            UnhideWhenUsed unhideWhenUsed6 = new UnhideWhenUsed();
            PrimaryStyle primaryStyle7 = new PrimaryStyle();
            Rsid rsid15 = new Rsid() { Val = "00A636FD" };

            StyleParagraphProperties styleParagraphProperties17 = new StyleParagraphProperties();
            OutlineLevel outlineLevel4 = new OutlineLevel() { Val = 9 };

            styleParagraphProperties17.Append(outlineLevel4);

            style18.Append(styleName18);
            style18.Append(basedOn14);
            style18.Append(nextParagraphStyle5);
            style18.Append(uIPriority17);
            style18.Append(semiHidden4);
            style18.Append(unhideWhenUsed6);
            style18.Append(primaryStyle7);
            style18.Append(rsid15);
            style18.Append(styleParagraphProperties17);

            Style style19 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOC1" };
            StyleName styleName19 = new StyleName() { Val = "toc 1" };
            BasedOn basedOn15 = new BasedOn() { Val = "Normal" };
            NextParagraphStyle nextParagraphStyle6 = new NextParagraphStyle() { Val = "Normal" };
            AutoRedefine autoRedefine1 = new AutoRedefine();
            UIPriority uIPriority18 = new UIPriority() { Val = 39 };
            UnhideWhenUsed unhideWhenUsed7 = new UnhideWhenUsed();
            Rsid rsid16 = new Rsid() { Val = "00A636FD" };

            StyleParagraphProperties styleParagraphProperties18 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines17 = new SpacingBetweenLines() { After = "100" };

            styleParagraphProperties18.Append(spacingBetweenLines17);

            style19.Append(styleName19);
            style19.Append(basedOn15);
            style19.Append(nextParagraphStyle6);
            style19.Append(autoRedefine1);
            style19.Append(uIPriority18);
            style19.Append(unhideWhenUsed7);
            style19.Append(rsid16);
            style19.Append(styleParagraphProperties18);

            Style style20 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOC2" };
            StyleName styleName20 = new StyleName() { Val = "toc 2" };
            BasedOn basedOn16 = new BasedOn() { Val = "Normal" };
            NextParagraphStyle nextParagraphStyle7 = new NextParagraphStyle() { Val = "Normal" };
            AutoRedefine autoRedefine2 = new AutoRedefine();
            UIPriority uIPriority19 = new UIPriority() { Val = 39 };
            UnhideWhenUsed unhideWhenUsed8 = new UnhideWhenUsed();
            Rsid rsid17 = new Rsid() { Val = "00A636FD" };

            StyleParagraphProperties styleParagraphProperties19 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines18 = new SpacingBetweenLines() { After = "100" };
            Indentation indentation1 = new Indentation() { Left = "220" };

            styleParagraphProperties19.Append(spacingBetweenLines18);
            styleParagraphProperties19.Append(indentation1);

            style20.Append(styleName20);
            style20.Append(basedOn16);
            style20.Append(nextParagraphStyle7);
            style20.Append(autoRedefine2);
            style20.Append(uIPriority19);
            style20.Append(unhideWhenUsed8);
            style20.Append(rsid17);
            style20.Append(styleParagraphProperties19);

            Style style21 = new Style() { Type = StyleValues.Paragraph, StyleId = "TOC3" };
            StyleName styleName21 = new StyleName() { Val = "toc 3" };
            BasedOn basedOn17 = new BasedOn() { Val = "Normal" };
            NextParagraphStyle nextParagraphStyle8 = new NextParagraphStyle() { Val = "Normal" };
            AutoRedefine autoRedefine3 = new AutoRedefine();
            UIPriority uIPriority20 = new UIPriority() { Val = 39 };
            UnhideWhenUsed unhideWhenUsed9 = new UnhideWhenUsed();
            Rsid rsid18 = new Rsid() { Val = "00A636FD" };

            StyleParagraphProperties styleParagraphProperties20 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines19 = new SpacingBetweenLines() { After = "100" };
            Indentation indentation2 = new Indentation() { Left = "440" };

            styleParagraphProperties20.Append(spacingBetweenLines19);
            styleParagraphProperties20.Append(indentation2);

            style21.Append(styleName21);
            style21.Append(basedOn17);
            style21.Append(nextParagraphStyle8);
            style21.Append(autoRedefine3);
            style21.Append(uIPriority20);
            style21.Append(unhideWhenUsed9);
            style21.Append(rsid18);
            style21.Append(styleParagraphProperties20);

            Style style22 = new Style() { Type = StyleValues.Character, StyleId = "Hyperlink" };
            StyleName styleName22 = new StyleName() { Val = "Hyperlink" };
            BasedOn basedOn18 = new BasedOn() { Val = "DefaultParagraphFont" };
            UIPriority uIPriority21 = new UIPriority() { Val = 99 };
            UnhideWhenUsed unhideWhenUsed10 = new UnhideWhenUsed();
            Rsid rsid19 = new Rsid() { Val = "00A636FD" };

            StyleRunProperties styleRunProperties9 = new StyleRunProperties();
            Color color15 = new Color() { Val = "0000FF", ThemeColor = ThemeColorValues.Hyperlink };
            Underline underline1 = new Underline() { Val = UnderlineValues.Single };

            styleRunProperties9.Append(color15);
            styleRunProperties9.Append(underline1);

            style22.Append(styleName22);
            style22.Append(basedOn18);
            style22.Append(uIPriority21);
            style22.Append(unhideWhenUsed10);
            style22.Append(rsid19);
            style22.Append(styleRunProperties9);

            Style style23 = new Style() { Type = StyleValues.Paragraph, StyleId = "BalloonText" };
            StyleName styleName23 = new StyleName() { Val = "Balloon Text" };
            BasedOn basedOn19 = new BasedOn() { Val = "Normal" };
            LinkedStyle linkedStyle9 = new LinkedStyle() { Val = "BalloonTextChar" };
            UIPriority uIPriority22 = new UIPriority() { Val = 99 };
            SemiHidden semiHidden5 = new SemiHidden();
            UnhideWhenUsed unhideWhenUsed11 = new UnhideWhenUsed();
            Rsid rsid20 = new Rsid() { Val = "00A636FD" };

            StyleParagraphProperties styleParagraphProperties21 = new StyleParagraphProperties();
            SpacingBetweenLines spacingBetweenLines20 = new SpacingBetweenLines() { Line = "240", LineRule = LineSpacingRuleValues.Auto };

            styleParagraphProperties21.Append(spacingBetweenLines20);

            StyleRunProperties styleRunProperties10 = new StyleRunProperties();
            RunFonts runFonts12 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" };
            FontSize fontSize6 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "16" };

            styleRunProperties10.Append(runFonts12);
            styleRunProperties10.Append(fontSize6);
            styleRunProperties10.Append(fontSizeComplexScript6);

            style23.Append(styleName23);
            style23.Append(basedOn19);
            style23.Append(linkedStyle9);
            style23.Append(uIPriority22);
            style23.Append(semiHidden5);
            style23.Append(unhideWhenUsed11);
            style23.Append(rsid20);
            style23.Append(styleParagraphProperties21);
            style23.Append(styleRunProperties10);

            Style style24 = new Style() { Type = StyleValues.Character, StyleId = "BalloonTextChar", CustomStyle = true };
            StyleName styleName24 = new StyleName() { Val = "Balloon Text Char" };
            BasedOn basedOn20 = new BasedOn() { Val = "DefaultParagraphFont" };
            LinkedStyle linkedStyle10 = new LinkedStyle() { Val = "BalloonText" };
            UIPriority uIPriority23 = new UIPriority() { Val = 99 };
            SemiHidden semiHidden6 = new SemiHidden();
            Rsid rsid21 = new Rsid() { Val = "00A636FD" };

            StyleRunProperties styleRunProperties11 = new StyleRunProperties();
            RunFonts runFonts13 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" };
            FontSize fontSize7 = new FontSize() { Val = "16" };
            FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "16" };

            styleRunProperties11.Append(runFonts13);
            styleRunProperties11.Append(fontSize7);
            styleRunProperties11.Append(fontSizeComplexScript7);

            style24.Append(styleName24);
            style24.Append(basedOn20);
            style24.Append(linkedStyle10);
            style24.Append(uIPriority23);
            style24.Append(semiHidden6);
            style24.Append(rsid21);
            style24.Append(styleRunProperties11);

            Style style25 = new Style() { Type = StyleValues.Paragraph, StyleId = "Passed", CustomStyle = true };
            StyleName styleName25 = new StyleName() { Val = "Passed" };
            BasedOn basedOn21 = new BasedOn() { Val = "Normal" };
            LinkedStyle linkedStyle11 = new LinkedStyle() { Val = "PassedChar" };
            PrimaryStyle primaryStyle8 = new PrimaryStyle();
            Rsid rsid22 = new Rsid() { Val = "005217FA" };

            StyleParagraphProperties styleParagraphProperties22 = new StyleParagraphProperties();
            Shading shading14 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "00B050" };
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            styleParagraphProperties22.Append(shading14);
            styleParagraphProperties22.Append(justification1);

            style25.Append(styleName25);
            style25.Append(basedOn21);
            style25.Append(linkedStyle11);
            style25.Append(primaryStyle8);
            style25.Append(rsid22);
            style25.Append(styleParagraphProperties22);

            Style style26 = new Style() { Type = StyleValues.Paragraph, StyleId = "Failed", CustomStyle = true };
            StyleName styleName26 = new StyleName() { Val = "Failed" };
            BasedOn basedOn22 = new BasedOn() { Val = "Passed" };
            LinkedStyle linkedStyle12 = new LinkedStyle() { Val = "FailedChar" };
            PrimaryStyle primaryStyle9 = new PrimaryStyle();
            Rsid rsid23 = new Rsid() { Val = "005217FA" };

            StyleParagraphProperties styleParagraphProperties23 = new StyleParagraphProperties();
            Shading shading15 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "FF0000" };

            styleParagraphProperties23.Append(shading15);

            style26.Append(styleName26);
            style26.Append(basedOn22);
            style26.Append(linkedStyle12);
            style26.Append(primaryStyle9);
            style26.Append(rsid23);
            style26.Append(styleParagraphProperties23);

            Style style27 = new Style() { Type = StyleValues.Character, StyleId = "PassedChar", CustomStyle = true };
            StyleName styleName27 = new StyleName() { Val = "Passed Char" };
            BasedOn basedOn23 = new BasedOn() { Val = "DefaultParagraphFont" };
            LinkedStyle linkedStyle13 = new LinkedStyle() { Val = "Passed" };
            Rsid rsid24 = new Rsid() { Val = "005217FA" };

            StyleRunProperties styleRunProperties12 = new StyleRunProperties();
            Shading shading16 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "00B050" };

            styleRunProperties12.Append(shading16);

            style27.Append(styleName27);
            style27.Append(basedOn23);
            style27.Append(linkedStyle13);
            style27.Append(rsid24);
            style27.Append(styleRunProperties12);

            Style style28 = new Style() { Type = StyleValues.Character, StyleId = "FailedChar", CustomStyle = true };
            StyleName styleName28 = new StyleName() { Val = "Failed Char" };
            BasedOn basedOn24 = new BasedOn() { Val = "PassedChar" };
            LinkedStyle linkedStyle14 = new LinkedStyle() { Val = "Failed" };
            Rsid rsid25 = new Rsid() { Val = "005217FA" };

            StyleRunProperties styleRunProperties13 = new StyleRunProperties();
            Shading shading17 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "FF0000" };

            styleRunProperties13.Append(shading17);

            style28.Append(styleName28);
            style28.Append(basedOn24);
            style28.Append(linkedStyle14);
            style28.Append(rsid25);
            style28.Append(styleRunProperties13);

            styles1.Append(docDefaults1);
            styles1.Append(latentStyles1);
            styles1.Append(style1);
            styles1.Append(style2);
            styles1.Append(style3);
            styles1.Append(style4);
            styles1.Append(style5);
            styles1.Append(style6);
            styles1.Append(style7);
            styles1.Append(style8);
            styles1.Append(style9);
            styles1.Append(style10);
            styles1.Append(style11);
            styles1.Append(style12);
            styles1.Append(style13);
            styles1.Append(style14);
            styles1.Append(style15);
            styles1.Append(style16);
            styles1.Append(style17);
            styles1.Append(style18);
            styles1.Append(style19);
            styles1.Append(style20);
            styles1.Append(style21);
            styles1.Append(style22);
            styles1.Append(style23);
            styles1.Append(style24);
            styles1.Append(style25);
            styles1.Append(style26);
            styles1.Append(style27);
            styles1.Append(style28);

            styles1.Append(GenerateHeaderStyle());
            styles1.Append(GenerateHeaderCharStyle());
            styles1.Append(GenerateFooterStyle());
            styles1.Append(GenerateFooterCharStyle());

            part.Styles = styles1;
        }
Exemplo n.º 42
0
 public ColumnFormat(int width, ContentVisibility visibility = ContentVisibility.Default, Justification justification = Justification.Left)
 {
     this.Width = width == 0 ? 1 : Math.Abs(width);
     this.Justification = justification;
     this.Visibility = visibility;
 }
        public Paragraph GenerateLastParagraph()
        {
            Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00000000", RsidParagraphProperties = "008A3B59", RsidRunAdditionDefault = "008A3B59" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Justification justification1 = new Justification() { Val = JustificationValues.Left };

            Run run1 = new Run();

            RunProperties runProperties1 = new RunProperties();
            RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia };

            runProperties1.Append(runFonts1);
            Text text1 = new Text();
            text1.Text = "敬告:1、管材检测执行标准:API SPEC 5CT、四川石油管理局发布Q/CY097-1998《钻井技术操作流程》、《套管油管检验规范》相关标准和内容。" + "2、《报告书》表格列出为质量检验合格管。" + "3、管材出库后的运输、不规范装卸,井场作业过程中发生的损伤,不属于质量承诺范围。" + "4、请固井工程师按实际入井管串顺序记录\"单根编号\"所在井下位置,便于管材质量跟踪管理、查询。";

            run1.Append(runProperties1);
            run1.Append(text1);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);
            return paragraph1;
        }
Exemplo n.º 44
0
 public void SetJustify(Justification justify)
 {
     OgrPINVOKE.FieldDefn_SetJustify(swigCPtr, (int)justify);
     if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 }
        private Table GenerateBasiceReportDataTable()
        {
            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid" };
            TablePositionProperties tablePositionProperties1 = new TablePositionProperties() { LeftFromText = 180, RightFromText = 180, VerticalAnchor = VerticalAnchorValues.Text, HorizontalAnchor = HorizontalAnchorValues.Margin, TablePositionXAlignment = HorizontalAlignmentValues.Center, TablePositionY = 103 };
            TableWidth tableWidth1 = new TableWidth() { Width = "15026", Type = TableWidthUnitValues.Dxa };
            TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true };

            tableProperties1.Append(tableStyle1);
            tableProperties1.Append(tablePositionProperties1);
            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableLook1);

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "15026" };

            tableGrid1.Append(gridColumn1);

            TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "004E307B", RsidTableRowProperties = "00D273DB" };

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "15026", Type = TableWidthUnitValues.Dxa };

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "004E307B", RsidParagraphAddition = "004E307B", RsidParagraphProperties = "004E307B", RsidRunAdditionDefault = "004E307B" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            paragraphProperties1.Append(justification1);

            paragraph1.Append(paragraphProperties1);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);

            tableRow1.Append(tableCell1);

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            return table1;
        }
Exemplo n.º 46
0
 public void RightJustifyNumerics()
 {
     numberJustification = Justification.Right;
 }
        private Paragraph GenerateReportDataHeadParagraph()
        {
            Paragraph paragraph1 = new Paragraph() { RsidParagraphMarkRevision = "00F24BD4", RsidParagraphAddition = "0073701D", RsidParagraphProperties = "00D25DD5", RsidRunAdditionDefault = "00D25DD5" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            ParagraphStyleId paragraphStyleId1 = new ParagraphStyleId() { Val = "Heading1" };
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines() { Before = "120", After = "120" };
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            RunFonts runFonts1 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize1 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "36" };

            paragraphMarkRunProperties1.Append(runFonts1);
            paragraphMarkRunProperties1.Append(fontSize1);
            paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

            paragraphProperties1.Append(paragraphStyleId1);
            paragraphProperties1.Append(spacingBetweenLines1);
            paragraphProperties1.Append(justification1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);

            Run run1 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties1 = new RunProperties();
            RunFonts runFonts2 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize2 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "36" };

            runProperties1.Append(runFonts2);
            runProperties1.Append(fontSize2);
            runProperties1.Append(fontSizeComplexScript2);
            Text text1 = new Text();
            text1.Text = "管";

            run1.Append(runProperties1);
            run1.Append(text1);

            Run run2 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties2 = new RunProperties();
            RunFonts runFonts3 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize3 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript() { Val = "36" };

            runProperties2.Append(runFonts3);
            runProperties2.Append(fontSize3);
            runProperties2.Append(fontSizeComplexScript3);
            Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text2.Text = " ";

            run2.Append(runProperties2);
            run2.Append(text2);

            Run run3 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties3 = new RunProperties();
            RunFonts runFonts4 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize4 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript() { Val = "36" };

            runProperties3.Append(runFonts4);
            runProperties3.Append(fontSize4);
            runProperties3.Append(fontSizeComplexScript4);
            Text text3 = new Text();
            text3.Text = "材";

            run3.Append(runProperties3);
            run3.Append(text3);

            Run run4 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties4 = new RunProperties();
            RunFonts runFonts5 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize5 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript() { Val = "36" };

            runProperties4.Append(runFonts5);
            runProperties4.Append(fontSize5);
            runProperties4.Append(fontSizeComplexScript5);
            Text text4 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text4.Text = " ";

            run4.Append(runProperties4);
            run4.Append(text4);

            Run run5 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties5 = new RunProperties();
            RunFonts runFonts6 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize6 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript6 = new FontSizeComplexScript() { Val = "36" };

            runProperties5.Append(runFonts6);
            runProperties5.Append(fontSize6);
            runProperties5.Append(fontSizeComplexScript6);
            Text text5 = new Text();
            text5.Text = "单";

            run5.Append(runProperties5);
            run5.Append(text5);

            Run run6 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties6 = new RunProperties();
            RunFonts runFonts7 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize7 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript7 = new FontSizeComplexScript() { Val = "36" };

            runProperties6.Append(runFonts7);
            runProperties6.Append(fontSize7);
            runProperties6.Append(fontSizeComplexScript7);
            Text text6 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text6.Text = " ";

            run6.Append(runProperties6);
            run6.Append(text6);

            Run run7 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties7 = new RunProperties();
            RunFonts runFonts8 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize8 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript() { Val = "36" };

            runProperties7.Append(runFonts8);
            runProperties7.Append(fontSize8);
            runProperties7.Append(fontSizeComplexScript8);
            Text text7 = new Text();
            text7.Text = "根";

            run7.Append(runProperties7);
            run7.Append(text7);

            Run run8 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties8 = new RunProperties();
            RunFonts runFonts9 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize9 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript9 = new FontSizeComplexScript() { Val = "36" };

            runProperties8.Append(runFonts9);
            runProperties8.Append(fontSize9);
            runProperties8.Append(fontSizeComplexScript9);
            Text text8 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text8.Text = " ";

            run8.Append(runProperties8);
            run8.Append(text8);

            Run run9 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties9 = new RunProperties();
            RunFonts runFonts10 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize10 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript10 = new FontSizeComplexScript() { Val = "36" };

            runProperties9.Append(runFonts10);
            runProperties9.Append(fontSize10);
            runProperties9.Append(fontSizeComplexScript10);
            Text text9 = new Text();
            text9.Text = "检";

            run9.Append(runProperties9);
            run9.Append(text9);

            Run run10 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties10 = new RunProperties();
            RunFonts runFonts11 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize11 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript11 = new FontSizeComplexScript() { Val = "36" };

            runProperties10.Append(runFonts11);
            runProperties10.Append(fontSize11);
            runProperties10.Append(fontSizeComplexScript11);
            Text text10 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text10.Text = " ";

            run10.Append(runProperties10);
            run10.Append(text10);

            Run run11 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties11 = new RunProperties();
            RunFonts runFonts12 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize12 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "36" };

            runProperties11.Append(runFonts12);
            runProperties11.Append(fontSize12);
            runProperties11.Append(fontSizeComplexScript12);
            Text text11 = new Text();
            text11.Text = "验";

            run11.Append(runProperties11);
            run11.Append(text11);

            Run run12 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties12 = new RunProperties();
            RunFonts runFonts13 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize13 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "36" };

            runProperties12.Append(runFonts13);
            runProperties12.Append(fontSize13);
            runProperties12.Append(fontSizeComplexScript13);
            Text text12 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text12.Text = " ";

            run12.Append(runProperties12);
            run12.Append(text12);

            Run run13 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties13 = new RunProperties();
            RunFonts runFonts14 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize14 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript14 = new FontSizeComplexScript() { Val = "36" };

            runProperties13.Append(runFonts14);
            runProperties13.Append(fontSize14);
            runProperties13.Append(fontSizeComplexScript14);
            Text text13 = new Text();
            text13.Text = "信";

            run13.Append(runProperties13);
            run13.Append(text13);

            Run run14 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties14 = new RunProperties();
            RunFonts runFonts15 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize15 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript15 = new FontSizeComplexScript() { Val = "36" };

            runProperties14.Append(runFonts15);
            runProperties14.Append(fontSize15);
            runProperties14.Append(fontSizeComplexScript15);
            Text text14 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text14.Text = " ";

            run14.Append(runProperties14);
            run14.Append(text14);

            Run run15 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties15 = new RunProperties();
            RunFonts runFonts16 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize16 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript16 = new FontSizeComplexScript() { Val = "36" };

            runProperties15.Append(runFonts16);
            runProperties15.Append(fontSize16);
            runProperties15.Append(fontSizeComplexScript16);
            Text text15 = new Text();
            text15.Text = "息";

            run15.Append(runProperties15);
            run15.Append(text15);

            Run run16 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties16 = new RunProperties();
            RunFonts runFonts17 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize17 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript() { Val = "36" };

            runProperties16.Append(runFonts17);
            runProperties16.Append(fontSize17);
            runProperties16.Append(fontSizeComplexScript17);
            Text text16 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text16.Text = " ";

            run16.Append(runProperties16);
            run16.Append(text16);

            Run run17 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties17 = new RunProperties();
            RunFonts runFonts18 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize18 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript18 = new FontSizeComplexScript() { Val = "36" };

            runProperties17.Append(runFonts18);
            runProperties17.Append(fontSize18);
            runProperties17.Append(fontSizeComplexScript18);
            Text text17 = new Text();
            text17.Text = "统";

            run17.Append(runProperties17);
            run17.Append(text17);

            Run run18 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties18 = new RunProperties();
            RunFonts runFonts19 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize19 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript19 = new FontSizeComplexScript() { Val = "36" };

            runProperties18.Append(runFonts19);
            runProperties18.Append(fontSize19);
            runProperties18.Append(fontSizeComplexScript19);
            Text text18 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text18.Text = " ";

            run18.Append(runProperties18);
            run18.Append(text18);

            Run run19 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties19 = new RunProperties();
            RunFonts runFonts20 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize20 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript20 = new FontSizeComplexScript() { Val = "36" };

            runProperties19.Append(runFonts20);
            runProperties19.Append(fontSize20);
            runProperties19.Append(fontSizeComplexScript20);
            Text text19 = new Text();
            text19.Text = "计";

            run19.Append(runProperties19);
            run19.Append(text19);

            Run run20 = new Run() { RsidRunAddition = "00F24BD4" };

            RunProperties runProperties20 = new RunProperties();
            RunFonts runFonts21 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize21 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript21 = new FontSizeComplexScript() { Val = "36" };

            runProperties20.Append(runFonts21);
            runProperties20.Append(fontSize21);
            runProperties20.Append(fontSizeComplexScript21);
            Text text20 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text20.Text = " ";

            run20.Append(runProperties20);
            run20.Append(text20);
            BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" };

            Run run21 = new Run() { RsidRunProperties = "00F24BD4" };

            RunProperties runProperties21 = new RunProperties();
            RunFonts runFonts22 = new RunFonts() { Hint = FontTypeHintValues.EastAsia, Ascii = "微软雅黑", HighAnsi = "微软雅黑", EastAsia = "微软雅黑" };
            FontSize fontSize22 = new FontSize() { Val = "36" };
            FontSizeComplexScript fontSizeComplexScript22 = new FontSizeComplexScript() { Val = "36" };

            runProperties21.Append(runFonts22);
            runProperties21.Append(fontSize22);
            runProperties21.Append(fontSizeComplexScript22);
            Text text21 = new Text();
            text21.Text = "表";

            run21.Append(runProperties21);
            run21.Append(text21);

            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);
            paragraph1.Append(run2);
            paragraph1.Append(run3);
            paragraph1.Append(run4);
            paragraph1.Append(run5);
            paragraph1.Append(run6);
            paragraph1.Append(run7);
            paragraph1.Append(run8);
            paragraph1.Append(run9);
            paragraph1.Append(run10);
            paragraph1.Append(run11);
            paragraph1.Append(run12);
            paragraph1.Append(run13);
            paragraph1.Append(run14);
            paragraph1.Append(run15);
            paragraph1.Append(run16);
            paragraph1.Append(run17);
            paragraph1.Append(run18);
            paragraph1.Append(run19);
            paragraph1.Append(run20);
            paragraph1.Append(bookmarkStart1);
            paragraph1.Append(bookmarkEnd1);
            paragraph1.Append(run21);
            return paragraph1;
        }
 /// <summary>
 /// Long for c'tor for use with a drop shadow.
 /// </summary>
 public UIGridFloatSliderElement(float width, float height, float edgeSize, string normalMapName, Color baseColor, string label, Shared.GetFont font, Justification justify, Color textColor, Color dropShadowColor, bool invertDropShadow)
     : base(width, height, edgeSize, normalMapName, baseColor, label, font, justify, textColor, dropShadowColor, invertDropShadow)
 {
 }
Exemplo n.º 49
0
        public TableRow GenerateTableFooterRow(CellProps[] cellProps, UInt32Value height)
        {
            // Add table row properties
            TableRow tableRow1 = new TableRow();
            TableRowProperties tableRowProperties1 = generateTableRowProperties(height);
            tableRow1.Append(tableRowProperties1);

            foreach (CellProps cp in cellProps) {
                if (cp.span == 0) continue;
                TableCell tableCell1 = new TableCell();
                TableCellProperties tableCellProperties1 = new TableCellProperties();
                TableCellBorders tableCellBorders1;

                if (cp.boxed) {
                    tableCellBorders1 = generateTableCellBordersBox();
                } else {
                    tableCellBorders1 = generateTableCellBordersPlain();
                }

                Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "auto" };
                NoWrap noWrap1 = new NoWrap();
                TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };
                HideMark hideMark1 = new HideMark();

                tableCellProperties1.Append(tableCellBorders1);
                tableCellProperties1.Append(shading1);
                tableCellProperties1.Append(noWrap1);
                tableCellProperties1.Append(tableCellVerticalAlignment1);
                tableCellProperties1.Append(hideMark1);

                Paragraph paragraph1 = new Paragraph();

                ParagraphProperties paragraphProperties1 = new ParagraphProperties();
                Justification justification1 = new Justification() { Val = JustificationValues.Right };

                ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
                Bold bold1 = new Bold();
                BoldComplexScript boldComplexScript1 = new BoldComplexScript();
                Color color1 = new Color() { Val = "333399" };
                FontSize fontSize1 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript() { Val = "18" };

                paragraphMarkRunProperties1.Append(bold1);
                paragraphMarkRunProperties1.Append(boldComplexScript1);
                paragraphMarkRunProperties1.Append(color1);
                paragraphMarkRunProperties1.Append(fontSize1);
                paragraphMarkRunProperties1.Append(fontSizeComplexScript1);

                paragraphProperties1.Append(justification1);
                paragraphProperties1.Append(paragraphMarkRunProperties1);

                Run run1 = new Run();

                RunProperties runProperties1 = new RunProperties();
                Bold bold2 = new Bold();
                BoldComplexScript boldComplexScript2 = new BoldComplexScript();
                Color color2 = new Color() { Val = "333399" };
                FontSize fontSize2 = new FontSize() { Val = "18" };
                FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript() { Val = "18" };

                runProperties1.Append(bold2);
                runProperties1.Append(boldComplexScript2);
                runProperties1.Append(color2);
                runProperties1.Append(fontSize2);
                runProperties1.Append(fontSizeComplexScript2);
                run1.Append(runProperties1);

                if (cp.text != null) {
                    Text text1 = new Text();
                    text1.Text = cp.text;
                    run1.Append(text1);
                }

                paragraph1.Append(paragraphProperties1);
                paragraph1.Append(run1);

                tableCell1.Append(tableCellProperties1);
                tableCell1.Append(paragraph1);
                tableRow1.Append(tableCell1);
            }
            return tableRow1;
        }
Exemplo n.º 50
0
        // Creates an Table instance and adds its children.
        public static Table GenerateTable(GenerationData data)
        {
            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableWidth      tableWidth1      = new TableWidth()
            {
                Width = "0", Type = TableWidthUnitValues.Auto
            };
            TableIndentation tableIndentation1 = new TableIndentation()
            {
                Width = 10, Type = TableWidthUnitValues.Dxa
            };

            TableBorders tableBorders1 = new TableBorders();
            TopBorder    topBorder1    = new TopBorder()
            {
                Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U
            };
            LeftBorder leftBorder1 = new LeftBorder()
            {
                Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U
            };
            BottomBorder bottomBorder1 = new BottomBorder()
            {
                Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U
            };
            RightBorder rightBorder1 = new RightBorder()
            {
                Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U
            };
            InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder()
            {
                Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U
            };
            InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder()
            {
                Val = BorderValues.Single, Color = "000000", Size = (UInt32Value)10U, Space = (UInt32Value)0U
            };

            tableBorders1.Append(topBorder1);
            tableBorders1.Append(leftBorder1);
            tableBorders1.Append(bottomBorder1);
            tableBorders1.Append(rightBorder1);
            tableBorders1.Append(insideHorizontalBorder1);
            tableBorders1.Append(insideVerticalBorder1);

            TableCellMarginDefault tableCellMarginDefault1 = new TableCellMarginDefault();
            TableCellLeftMargin    tableCellLeftMargin1    = new TableCellLeftMargin()
            {
                Width = 10, Type = TableWidthValues.Dxa
            };
            TableCellRightMargin tableCellRightMargin1 = new TableCellRightMargin()
            {
                Width = 10, Type = TableWidthValues.Dxa
            };

            tableCellMarginDefault1.Append(tableCellLeftMargin1);
            tableCellMarginDefault1.Append(tableCellRightMargin1);
            TableLook tableLook1 = new TableLook()
            {
                Val = "0000", FirstRow = false, LastRow = false, FirstColumn = false, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = false
            };

            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableIndentation1);
            tableProperties1.Append(tableBorders1);
            tableProperties1.Append(tableCellMarginDefault1);
            tableProperties1.Append(tableLook1);

            TableGrid  tableGrid1  = new TableGrid();
            GridColumn gridColumn1 = new GridColumn()
            {
                Width = "8980"
            };

            tableGrid1.Append(gridColumn1);

            TableRow tableRow1 = new TableRow()
            {
                RsidTableRowAddition = "009B2C1D", ParagraphId = "34C34FBB", TextId = "77777777"
            };

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth      tableCellWidth1      = new TableCellWidth()
            {
                Width = "15000", Type = TableWidthUnitValues.Dxa
            };

            TableCellBorders tableCellBorders1 = new TableCellBorders();
            TopBorder        topBorder2        = new TopBorder()
            {
                Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            LeftBorder leftBorder2 = new LeftBorder()
            {
                Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            BottomBorder bottomBorder2 = new BottomBorder()
            {
                Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };
            RightBorder rightBorder2 = new RightBorder()
            {
                Val = BorderValues.Single, Color = "FFFFFF", Size = (UInt32Value)0U, Space = (UInt32Value)0U
            };

            tableCellBorders1.Append(topBorder2);
            tableCellBorders1.Append(leftBorder2);
            tableCellBorders1.Append(bottomBorder2);
            tableCellBorders1.Append(rightBorder2);

            tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(tableCellBorders1);

            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "6C4075DB", TextId = "77777777"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines1 = new SpacingBetweenLines()
            {
                Before = "1000"
            };
            Justification justification1 = new Justification()
            {
                Val = JustificationValues.Center
            };

            paragraphProperties1.Append(spacingBetweenLines1);
            paragraphProperties1.Append(justification1);

            paragraph1.Append(paragraphProperties1);
            Paragraph paragraph2 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009B2C1D", ParagraphId = "7FF63C21", TextId = "77777777"
            };

            Paragraph paragraph3 = new Paragraph()
            {
                RsidParagraphMarkRevision = "00BE3F16", RsidParagraphAddition = "009E39C2", RsidParagraphProperties = "009E39C2", RsidRunAdditionDefault = "0007641E", ParagraphId = "0937AE70", TextId = "42846C98"
            };

            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines2 = new SpacingBetweenLines()
            {
                Before = "1000"
            };
            Justification justification2 = new Justification()
            {
                Val = JustificationValues.Center
            };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            Bold     bold1     = new Bold();
            FontSize fontSize1 = new FontSize()
            {
                Val = "28"
            };

            paragraphMarkRunProperties1.Append(bold1);
            paragraphMarkRunProperties1.Append(fontSize1);

            paragraphProperties2.Append(spacingBetweenLines2);
            paragraphProperties2.Append(justification2);
            paragraphProperties2.Append(paragraphMarkRunProperties1);

            Run run1 = new Run();

            RunProperties runProperties1 = new RunProperties();
            Bold          bold2          = new Bold();
            FontSize      fontSize2      = new FontSize()
            {
                Val = "28"
            };

            runProperties1.Append(bold2);
            runProperties1.Append(fontSize2);
            Text text1 = new Text();

            text1.Text = data.TitleArea.Project;

            run1.Append(runProperties1);
            run1.Append(text1);

            paragraph3.Append(paragraphProperties2);
            paragraph3.Append(run1);

            Paragraph paragraph4 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "01FC911A", TextId = "77777777"
            };

            Run run3 = new Run();

            RunProperties runProperties3 = new RunProperties();
            FontSize      fontSize4      = new FontSize()
            {
                Val = "22"
            };
            FontSizeComplexScript fontSizeComplexScript1 = new FontSizeComplexScript()
            {
                Val = "22"
            };

            runProperties3.Append(fontSize4);
            runProperties3.Append(fontSizeComplexScript1);
            Text text3 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text3.Text = " ";

            run3.Append(runProperties3);
            run3.Append(text3);

            paragraph4.Append(run3);

            Paragraph paragraph5 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "51573CC7", TextId = "77777777"
            };

            Run run4 = new Run();

            RunProperties runProperties4 = new RunProperties();
            FontSize      fontSize5      = new FontSize()
            {
                Val = "22"
            };
            FontSizeComplexScript fontSizeComplexScript2 = new FontSizeComplexScript()
            {
                Val = "22"
            };

            runProperties4.Append(fontSize5);
            runProperties4.Append(fontSizeComplexScript2);
            Text text4 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text4.Text = " ";

            run4.Append(runProperties4);
            run4.Append(text4);

            paragraph5.Append(run4);

            Paragraph paragraph6 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "1AC39030", TextId = "77777777"
            };

            Run run5 = new Run();

            RunProperties runProperties5 = new RunProperties();
            FontSize      fontSize6      = new FontSize()
            {
                Val = "22"
            };
            FontSizeComplexScript fontSizeComplexScript3 = new FontSizeComplexScript()
            {
                Val = "22"
            };

            runProperties5.Append(fontSize6);
            runProperties5.Append(fontSizeComplexScript3);
            Text text5 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text5.Text = " ";

            run5.Append(runProperties5);
            run5.Append(text5);

            paragraph6.Append(run5);

            Paragraph paragraph7 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "5B7F4F83", TextId = "77777777"
            };

            Run run6 = new Run();

            RunProperties runProperties6 = new RunProperties();
            FontSize      fontSize7      = new FontSize()
            {
                Val = "22"
            };
            FontSizeComplexScript fontSizeComplexScript4 = new FontSizeComplexScript()
            {
                Val = "22"
            };

            runProperties6.Append(fontSize7);
            runProperties6.Append(fontSizeComplexScript4);
            Text text6 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text6.Text = " ";

            run6.Append(runProperties6);
            run6.Append(text6);

            paragraph7.Append(run6);

            Paragraph paragraph8 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "3E1A38C5", TextId = "77777777"
            };

            ParagraphProperties paragraphProperties3 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines3 = new SpacingBetweenLines()
            {
                After = "195", Line = "240", LineRule = LineSpacingRuleValues.Auto
            };

            paragraphProperties3.Append(spacingBetweenLines3);

            Run run7 = new Run();

            RunProperties runProperties7 = new RunProperties();
            FontSize      fontSize8      = new FontSize()
            {
                Val = "15"
            };
            FontSizeComplexScript fontSizeComplexScript5 = new FontSizeComplexScript()
            {
                Val = "15"
            };

            runProperties7.Append(fontSize8);
            runProperties7.Append(fontSizeComplexScript5);
            Text text7 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text7.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_NOTICE_FIRST, data.Language);

            run7.Append(runProperties7);
            run7.Append(text7);

            paragraph8.Append(paragraphProperties3);
            paragraph8.Append(run7);

            Paragraph paragraph9 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "0F00B1CA", TextId = "77777777"
            };

            ParagraphProperties paragraphProperties4 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines4 = new SpacingBetweenLines()
            {
                After = "195", Line = "240", LineRule = LineSpacingRuleValues.Auto
            };

            paragraphProperties4.Append(spacingBetweenLines4);

            Run run10 = new Run();

            RunProperties runProperties10 = new RunProperties();
            FontSize      fontSize11      = new FontSize()
            {
                Val = "15"
            };
            FontSizeComplexScript fontSizeComplexScript8 = new FontSizeComplexScript()
            {
                Val = "15"
            };

            runProperties10.Append(fontSize11);
            runProperties10.Append(fontSizeComplexScript8);
            Text text10 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text10.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_NOTICE_SECOND, data.Language);

            run10.Append(runProperties10);
            run10.Append(text10);

            paragraph9.Append(paragraphProperties4);
            paragraph9.Append(run10);

            Paragraph paragraph10 = new Paragraph()
            {
                RsidParagraphAddition = "009B2C1D", RsidRunAdditionDefault = "009E39C2", ParagraphId = "28B14C27", TextId = "77777777"
            };

            ParagraphProperties paragraphProperties5 = new ParagraphProperties();
            SpacingBetweenLines spacingBetweenLines5 = new SpacingBetweenLines()
            {
                After = "195", Line = "240", LineRule = LineSpacingRuleValues.Auto
            };

            paragraphProperties5.Append(spacingBetweenLines5);

            Run run19 = new Run();

            RunProperties runProperties19 = new RunProperties();
            FontSize      fontSize20      = new FontSize()
            {
                Val = "15"
            };
            FontSizeComplexScript fontSizeComplexScript17 = new FontSizeComplexScript()
            {
                Val = "15"
            };

            runProperties19.Append(fontSize20);
            runProperties19.Append(fontSizeComplexScript17);
            Text text19 = new Text()
            {
                Space = SpaceProcessingModeValues.Preserve
            };

            text19.Text = DocumentMetadataTexts.GetText(MetadataTexts.CV_NOTICE_THIRD, data.Language);

            run19.Append(runProperties19);
            run19.Append(text19);

            paragraph10.Append(paragraphProperties5);
            paragraph10.Append(run19);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);
            tableCell1.Append(paragraph2);
            tableCell1.Append(paragraph3);
            tableCell1.Append(paragraph4);
            tableCell1.Append(paragraph5);
            tableCell1.Append(paragraph6);
            tableCell1.Append(paragraph7);
            tableCell1.Append(paragraph8);
            tableCell1.Append(paragraph9);
            tableCell1.Append(paragraph10);

            tableRow1.Append(tableCell1);

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            return(table1);
        }
Exemplo n.º 51
0
        //.....................................................................
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private static TableCell MakeElem1( )
        {
            TableCell tableCell1 = new TableCell( );

            TableCellProperties tableCellProperties1 = new TableCellProperties( );

            TableCellWidth tableCellWidth1 = new TableCellWidth( )
            {
                Width = "2840", Type = TableWidthUnitValues.Dxa
            };

            TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment( )
            {
                Val = TableVerticalAlignmentValues.Center
            };

            tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(tableCellVerticalAlignment1);

            //---------------------------------------------
            Paragraph paragraph1 = new Paragraph( )
            {
                RsidParagraphMarkRevision = "00B721D5", RsidParagraphAddition = "00B721D5", RsidParagraphProperties = "00B721D5", RsidRunAdditionDefault = "00B721D5"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties( );
            Justification       justification1       = new Justification( )
            {
                Val = JustificationValues.Center
            };

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties( );
            Bold  bold1  = new Bold( );
            Color color1 = new Color( )
            {
                Val = "FF0000"
            };

            paragraphMarkRunProperties1.Append(bold1);
            paragraphMarkRunProperties1.Append(color1);

            paragraphProperties1.Append(justification1);
            paragraphProperties1.Append(paragraphMarkRunProperties1);

            //---------------------------------------------
            Run run1 = new Run( )
            {
                RsidRunProperties = "00B721D5"
            };

            RunProperties runProperties1 = new RunProperties( );
            RunFonts      runFonts1      = new RunFonts( )
            {
                Hint = FontTypeHintValues.EastAsia
            };
            Bold  bold2  = new Bold( );
            Color color2 = new Color( )
            {
                Val = "FF0000"
            };

            runProperties1.Append(runFonts1);
            runProperties1.Append(bold2);
            runProperties1.Append(color2);

            Text text1 = new Text( );

            text1.Text = "序号";

            run1.Append(runProperties1);
            run1.Append(text1);

            //---------------------------------------------
            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);

            return(tableCell1);
        }
Exemplo n.º 52
0
 /// <summary>
 /// ESC a n
 /// </summary>
 public static byte[] SelectJustification(Justification justification)
 => new byte[]
 {
     0x1B, 0x61, (byte)justification
 };
Exemplo n.º 53
0
        /// <summary>
        /// Writes a column of the given width and justification
        /// </summary>
        /// <param name="width">Number of characters to use for this column</param>
        /// <param name="noRightPadding">By default we want to put spaces on the right out to the width</param>
        public static void WriteColumn(this StringBuilder builder, string value, Justification justification, int width, bool noRightPadding = false)
        {
            int length = value.Length;

            if (length >= width)
            {
                builder.Append(value, startIndex: 0, count: width);
                return;
            }

            if (noRightPadding && justification == Justification.Left)
            {
                builder.Append(value);
                return;
            }

            int leftSpacing = 0;
            int rightSpacing = 0;

            switch (justification)
            {
                case Justification.Centered:
                    leftSpacing = (width - length) / 2;
                    rightSpacing = width - length - leftSpacing;
                    break;
                case Justification.Left:
                    rightSpacing = width - length;
                    break;
                case Justification.Right:
                    leftSpacing = width - length;
                    break;
            }

            if (leftSpacing > 0) builder.Append(' ', leftSpacing);
            builder.Append(value);
            if (rightSpacing > 0 && !noRightPadding) builder.Append(' ', rightSpacing);
        }
Exemplo n.º 54
0
 public byte[] SelectJustification(Justification justification)
 {
     return(new[] { AsciiTable.ESC, AsciiTable.a, (byte)justification });
 }
Exemplo n.º 55
0
 public void DisableRightJustifyNumerics()
 {
     numberJustification = Justification.Left;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FreeTextAnnotation" /> class.
 /// </summary>
 /// <param name="Links">Link to the document.</param>
 /// <param name="Color">Color of the annotation.</param>
 /// <param name="Contents">Get the annotation content.</param>
 /// <param name="Modified">The date and time when the annotation was last modified.</param>
 /// <param name="Id">Gets ID of the annotation.</param>
 /// <param name="Flags">Gets Flags of the annotation.</param>
 /// <param name="Name">Gets Name of the annotation.</param>
 /// <param name="Rect">Gets Rect of the annotation. (required)</param>
 /// <param name="PageIndex">Gets PageIndex of the annotation.</param>
 /// <param name="ZIndex">Gets ZIndex of the annotation.</param>
 /// <param name="HorizontalAlignment">Gets HorizontalAlignment of the annotation.</param>
 /// <param name="VerticalAlignment">Gets VerticalAlignment of the annotation.</param>
 /// <param name="CreationDate">The date and time when the annotation was created.</param>
 /// <param name="Subject">Get the annotation subject.</param>
 /// <param name="Title">Get the annotation title.</param>
 /// <param name="RichText">Get the annotation RichText.</param>
 /// <param name="Justification">Gets Justification of the annotation.</param>
 /// <param name="Intent">Gets or sets the intent of the free text annotation.</param>
 /// <param name="Rotate">Angle of annotation rotation.</param>
 /// <param name="TextStyle">Text style of the annotation. (required)</param>
 public FreeTextAnnotation(List <Link> Links = default(List <Link>), Color Color = default(Color), string Contents = default(string), string Modified = default(string), string Id = default(string), List <AnnotationFlags> Flags = default(List <AnnotationFlags>), string Name = default(string), Rectangle Rect = default(Rectangle), int?PageIndex = default(int?), int?ZIndex = default(int?), HorizontalAlignment HorizontalAlignment = default(HorizontalAlignment), VerticalAlignment VerticalAlignment = default(VerticalAlignment), string CreationDate = default(string), string Subject = default(string), string Title = default(string), string RichText = default(string), Justification Justification = default(Justification), FreeTextIntent Intent = default(FreeTextIntent), Rotation Rotate = default(Rotation), TextStyle TextStyle = default(TextStyle))
 {
     // to ensure "Rect" is required (not null)
     if (Rect == null)
     {
         throw new InvalidDataException("Rect is a required property for FreeTextAnnotation and cannot be null");
     }
     else
     {
         this.Rect = Rect;
     }
     // to ensure "TextStyle" is required (not null)
     if (TextStyle == null)
     {
         throw new InvalidDataException("TextStyle is a required property for FreeTextAnnotation and cannot be null");
     }
     else
     {
         this.TextStyle = TextStyle;
     }
     this.Links               = Links;
     this.Color               = Color;
     this.Contents            = Contents;
     this.Modified            = Modified;
     this.Id                  = Id;
     this.Flags               = Flags;
     this.Name                = Name;
     this.PageIndex           = PageIndex;
     this.ZIndex              = ZIndex;
     this.HorizontalAlignment = HorizontalAlignment;
     this.VerticalAlignment   = VerticalAlignment;
     this.CreationDate        = CreationDate;
     this.Subject             = Subject;
     this.Title               = Title;
     this.RichText            = RichText;
     this.Justification       = Justification;
     this.Intent              = Intent;
     this.Rotate              = Rotate;
 }
Exemplo n.º 57
0
		public void DrawString(string Text, double x, double y, double pointSize = 12,
			Justification justification = Justification.Left, Baseline baseline = Baseline.Text,
			RGBA_Bytes color = new RGBA_Bytes(), bool drawFromHintedCach = false, RGBA_Bytes backgroundColor = new RGBA_Bytes())
		{
			TypeFacePrinter stringPrinter = new TypeFacePrinter(Text, pointSize, new Vector2(x, y), justification, baseline);
			if (color.Alpha0To255 == 0)
			{
				color = RGBA_Bytes.Black;
			}

			if (backgroundColor.Alpha0To255 != 0)
			{
				FillRectangle(stringPrinter.LocalBounds, backgroundColor);
			}

			stringPrinter.DrawFromHintedCache = drawFromHintedCach;
			stringPrinter.Render(this, color);
		}
Exemplo n.º 58
0
        private static void AddItemsToTable(Table table1)
        {
            //Add test items to table
            #region MyRegion

            TableGrid  tableGrid1  = new TableGrid();
            GridColumn gridColumn1 = new GridColumn()
            {
                Width = "2394"
            };
            GridColumn gridColumn2 = new GridColumn()
            {
                Width = "2394"
            };
            GridColumn gridColumn3 = new GridColumn()
            {
                Width = "2394"
            };

            tableGrid1.Append(gridColumn1);
            tableGrid1.Append(gridColumn2);
            tableGrid1.Append(gridColumn3);

            //create table row object
            TableRow tableRow1 = new TableRow()
            {
                RsidTableRowAddition = "004D1DA5", RsidTableRowProperties = "004D1DA5"
            };

            //create row properties
            TableRowProperties     tableRowProperties1     = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle1 = new ConditionalFormatStyle()
            {
                Val = "100000000000"
            };

            tableRowProperties1.Append(conditionalFormatStyle1);

            //create cell object and its properties
            TableCell tableCell1 = new TableCell();

            TableCellProperties    tableCellProperties1    = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle2 = new ConditionalFormatStyle()
            {
                Val = "001000000000"
            };
            TableCellWidth tableCellWidth1 = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark1 = new HideMark();

            tableCellProperties1.Append(conditionalFormatStyle2);
            tableCellProperties1.Append(tableCellWidth1);
            tableCellProperties1.Append(hideMark1);

            //create paragrpah object and its properties
            Paragraph paragraph1 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();
            Justification       justification1       = new Justification()
            {
                Val = JustificationValues.Center
            };

            paragraphProperties1.Append(justification1);

            //create Run and Text
            Run  run1  = new Run();
            Text text1 = new Text();
            //add content in Text
            text1.Text = "No";

            //add Text to Run
            run1.Append(text1);

            //add Run to paragraph
            paragraph1.Append(paragraphProperties1);
            paragraph1.Append(run1);

            //add Paragraph to cell
            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);

            TableCell tableCell2 = new TableCell();

            TableCellProperties tableCellProperties2 = new TableCellProperties();
            TableCellWidth      tableCellWidth2      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark2 = new HideMark();

            tableCellProperties2.Append(tableCellWidth2);
            tableCellProperties2.Append(hideMark2);

            Paragraph paragraph2 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            Justification       justification2       = new Justification()
            {
                Val = JustificationValues.Center
            };
            ConditionalFormatStyle conditionalFormatStyle3 = new ConditionalFormatStyle()
            {
                Val = "100000000000"
            };

            paragraphProperties2.Append(justification2);
            paragraphProperties2.Append(conditionalFormatStyle3);

            Run  run2  = new Run();
            Text text2 = new Text();
            text2.Text = "Name";

            run2.Append(text2);

            paragraph2.Append(paragraphProperties2);
            paragraph2.Append(run2);

            tableCell2.Append(tableCellProperties2);
            tableCell2.Append(paragraph2);

            TableCell tableCell3 = new TableCell();

            TableCellProperties tableCellProperties3 = new TableCellProperties();
            TableCellWidth      tableCellWidth3      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark3 = new HideMark();

            tableCellProperties3.Append(tableCellWidth3);
            tableCellProperties3.Append(hideMark3);

            Paragraph paragraph3 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties paragraphProperties3 = new ParagraphProperties();
            Justification       justification3       = new Justification()
            {
                Val = JustificationValues.Center
            };
            ConditionalFormatStyle conditionalFormatStyle4 = new ConditionalFormatStyle()
            {
                Val = "100000000000"
            };

            paragraphProperties3.Append(justification3);
            paragraphProperties3.Append(conditionalFormatStyle4);

            Run  run3  = new Run();
            Text text3 = new Text();
            text3.Text = "Sex";

            run3.Append(text3);

            paragraph3.Append(paragraphProperties3);
            paragraph3.Append(run3);

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph3);

            tableRow1.Append(tableRowProperties1);
            tableRow1.Append(tableCell1);
            tableRow1.Append(tableCell2);
            tableRow1.Append(tableCell3);

            TableRow tableRow2 = new TableRow()
            {
                RsidTableRowAddition = "004D1DA5", RsidTableRowProperties = "004D1DA5"
            };

            TableRowProperties     tableRowProperties2     = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle5 = new ConditionalFormatStyle()
            {
                Val = "000000100000"
            };

            tableRowProperties2.Append(conditionalFormatStyle5);

            TableCell tableCell4 = new TableCell();

            TableCellProperties    tableCellProperties4    = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle6 = new ConditionalFormatStyle()
            {
                Val = "001000000000"
            };
            TableCellWidth tableCellWidth4 = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark4 = new HideMark();

            tableCellProperties4.Append(conditionalFormatStyle6);
            tableCellProperties4.Append(tableCellWidth4);
            tableCellProperties4.Append(hideMark4);

            Paragraph paragraph4 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            Run  run4  = new Run();
            Text text4 = new Text();
            text4.Text = "1";

            run4.Append(text4);

            paragraph4.Append(run4);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph4);

            TableCell tableCell5 = new TableCell();

            TableCellProperties tableCellProperties5 = new TableCellProperties();
            TableCellWidth      tableCellWidth5      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark5 = new HideMark();

            tableCellProperties5.Append(tableCellWidth5);
            tableCellProperties5.Append(hideMark5);

            Paragraph paragraph5 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties4    = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle7 = new ConditionalFormatStyle()
            {
                Val = "000000100000"
            };

            paragraphProperties4.Append(conditionalFormatStyle7);

            Run  run5  = new Run();
            Text text5 = new Text();
            text5.Text = "ABC";

            run5.Append(text5);

            paragraph5.Append(paragraphProperties4);
            paragraph5.Append(run5);

            tableCell5.Append(tableCellProperties5);
            tableCell5.Append(paragraph5);

            TableCell tableCell6 = new TableCell();

            TableCellProperties tableCellProperties6 = new TableCellProperties();
            TableCellWidth      tableCellWidth6      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark6 = new HideMark();

            tableCellProperties6.Append(tableCellWidth6);
            tableCellProperties6.Append(hideMark6);

            Paragraph paragraph6 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties5    = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle8 = new ConditionalFormatStyle()
            {
                Val = "000000100000"
            };

            paragraphProperties5.Append(conditionalFormatStyle8);

            Run  run6  = new Run();
            Text text6 = new Text();
            text6.Text = "Male";

            run6.Append(text6);

            paragraph6.Append(paragraphProperties5);
            paragraph6.Append(run6);

            tableCell6.Append(tableCellProperties6);
            tableCell6.Append(paragraph6);

            tableRow2.Append(tableRowProperties2);
            tableRow2.Append(tableCell4);
            tableRow2.Append(tableCell5);
            tableRow2.Append(tableCell6);

            TableRow tableRow3 = new TableRow()
            {
                RsidTableRowAddition = "004D1DA5", RsidTableRowProperties = "004D1DA5"
            };

            TableRowProperties     tableRowProperties3     = new TableRowProperties();
            ConditionalFormatStyle conditionalFormatStyle9 = new ConditionalFormatStyle()
            {
                Val = "000000010000"
            };

            tableRowProperties3.Append(conditionalFormatStyle9);

            TableCell tableCell7 = new TableCell();

            TableCellProperties    tableCellProperties7     = new TableCellProperties();
            ConditionalFormatStyle conditionalFormatStyle10 = new ConditionalFormatStyle()
            {
                Val = "001000000000"
            };
            TableCellWidth tableCellWidth7 = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark7 = new HideMark();

            tableCellProperties7.Append(conditionalFormatStyle10);
            tableCellProperties7.Append(tableCellWidth7);
            tableCellProperties7.Append(hideMark7);

            Paragraph paragraph7 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            Run  run7  = new Run();
            Text text7 = new Text();
            text7.Text = "2";

            run7.Append(text7);

            paragraph7.Append(run7);

            tableCell7.Append(tableCellProperties7);
            tableCell7.Append(paragraph7);

            TableCell tableCell8 = new TableCell();

            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth      tableCellWidth8      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark8 = new HideMark();

            tableCellProperties8.Append(tableCellWidth8);
            tableCellProperties8.Append(hideMark8);

            Paragraph paragraph8 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties6     = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle11 = new ConditionalFormatStyle()
            {
                Val = "000000010000"
            };

            paragraphProperties6.Append(conditionalFormatStyle11);

            Run  run8  = new Run();
            Text text8 = new Text();
            text8.Text = "PQR";

            run8.Append(text8);

            paragraph8.Append(paragraphProperties6);
            paragraph8.Append(run8);

            tableCell8.Append(tableCellProperties8);
            tableCell8.Append(paragraph8);

            TableCell tableCell9 = new TableCell();

            TableCellProperties tableCellProperties9 = new TableCellProperties();
            TableCellWidth      tableCellWidth9      = new TableCellWidth()
            {
                Width = "2394", Type = TableWidthUnitValues.Dxa
            };
            HideMark hideMark9 = new HideMark();

            tableCellProperties9.Append(tableCellWidth9);
            tableCellProperties9.Append(hideMark9);

            Paragraph paragraph9 = new Paragraph()
            {
                RsidParagraphAddition = "004D1DA5", RsidRunAdditionDefault = "004D1DA5"
            };

            ParagraphProperties    paragraphProperties7     = new ParagraphProperties();
            ConditionalFormatStyle conditionalFormatStyle12 = new ConditionalFormatStyle()
            {
                Val = "000000010000"
            };

            paragraphProperties7.Append(conditionalFormatStyle12);

            Run  run9  = new Run();
            Text text9 = new Text();
            text9.Text = "Female";

            run9.Append(text9);

            paragraph9.Append(paragraphProperties7);
            paragraph9.Append(run9);

            tableCell9.Append(tableCellProperties9);
            tableCell9.Append(paragraph9);

            tableRow3.Append(tableRowProperties3);
            tableRow3.Append(tableCell7);
            tableRow3.Append(tableCell8);
            tableRow3.Append(tableCell9);

            table1.Append(tableGrid1);
            table1.Append(tableRow1);
            table1.Append(tableRow2);
            table1.Append(tableRow3);

            #endregion
        }
Exemplo n.º 59
0
        // Creates an Paragraph instance and adds its children.
        public TableRow GenerateTableRow(IndividualInfo ii, string iid)
        {
            TableRow tableRow1 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00442AD3" };

            TableRowProperties tableRowProperties1 = new TableRowProperties();
            CantSplit cantSplit1 = new CantSplit();

            tableRowProperties1.Append(cantSplit1);

            TableCell tableCell1 = new TableCell();

            TableCellProperties tableCellProperties1 = new TableCellProperties();
            TableCellWidth tableCellWidth1 = new TableCellWidth() { Width = "4788", Type = TableWidthUnitValues.Dxa };

            tableCellProperties1.Append(tableCellWidth1);

            Paragraph paragraph1 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run1 = new Run();
            Break break1 = new Break();

            run1.Append(break1);

            Run run2 = new Run();

            RunProperties runProperties1 = new RunProperties();
            NoProof noProof1 = new NoProof();

            runProperties1.Append(noProof1);
            Text text1 = new Text();
            text1.Text = ii.FirstName;

            run2.Append(runProperties1);
            run2.Append(text1);

            Run run3 = new Run();
            Text text2 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text2.Text = " ";

            run3.Append(text2);

            Run run4 = new Run();

            RunProperties runProperties2 = new RunProperties();
            NoProof noProof2 = new NoProof();

            runProperties2.Append(noProof2);
            Text text3 = new Text();
            text3.Text = ii.LastName;

            run4.Append(runProperties2);
            run4.Append(text3);

            paragraph1.Append(run1);
            paragraph1.Append(run2);
            paragraph1.Append(run3);
            paragraph1.Append(run4);

            Paragraph paragraph2 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" };

            Run run5 = new Run();

            RunProperties runProperties3 = new RunProperties();
            NoProof noProof3 = new NoProof();

            runProperties3.Append(noProof3);
            Text text4 = new Text();
            text4.Text = ii.Address;

            run5.Append(runProperties3);
            run5.Append(text4);

            paragraph2.Append(run5);

            Paragraph paragraph2a = null;
            if (ii.Address2.HasValue())
            {
                paragraph2a = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" };
                Run r = new Run();

                RunProperties rp = new RunProperties();
                NoProof np = new NoProof();

                rp.Append(np);
                Text tt = new Text();
                tt.Text = ii.Address;

                r.Append(rp);
                r.Append(tt);

                paragraph2a.Append(r);
            }

            Paragraph paragraph3 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00731A43", RsidRunAdditionDefault = "00FB1F22" };

            Run run6 = new Run();

            RunProperties runProperties4 = new RunProperties();
            NoProof noProof4 = new NoProof();

            runProperties4.Append(noProof4);
            Text text5 = new Text();
            text5.Text = ii.CityStateZip;
            run6.Append(runProperties4);
            run6.Append(text5);

            paragraph3.Append(run6);

            Paragraph paragraph4 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Table table1 = new Table();

            TableProperties tableProperties1 = new TableProperties();
            TableStyle tableStyle1 = new TableStyle() { Val = "TableGrid" };
            TableWidth tableWidth1 = new TableWidth() { Width = "0", Type = TableWidthUnitValues.Auto };

            TableBorders tableBorders1 = new TableBorders();
            TopBorder topBorder1 = new TopBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U };
            LeftBorder leftBorder1 = new LeftBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U };
            BottomBorder bottomBorder1 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U };
            RightBorder rightBorder1 = new RightBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U };
            InsideHorizontalBorder insideHorizontalBorder1 = new InsideHorizontalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U };
            InsideVerticalBorder insideVerticalBorder1 = new InsideVerticalBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U };

            tableBorders1.Append(topBorder1);
            tableBorders1.Append(leftBorder1);
            tableBorders1.Append(bottomBorder1);
            tableBorders1.Append(rightBorder1);
            tableBorders1.Append(insideHorizontalBorder1);
            tableBorders1.Append(insideVerticalBorder1);
            TableLook tableLook1 = new TableLook() { Val = "04A0", FirstRow = true, LastRow = false, FirstColumn = true, LastColumn = false, NoHorizontalBand = false, NoVerticalBand = true };

            tableProperties1.Append(tableStyle1);
            tableProperties1.Append(tableWidth1);
            tableProperties1.Append(tableBorders1);
            tableProperties1.Append(tableLook1);

            TableGrid tableGrid1 = new TableGrid();
            GridColumn gridColumn1 = new GridColumn() { Width = "1435" };
            GridColumn gridColumn2 = new GridColumn() { Width = "3122" };

            tableGrid1.Append(gridColumn1);
            tableGrid1.Append(gridColumn2);

            TableRow tableRow2 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" };

            TableCell tableCell2 = new TableCell();

            TableCellProperties tableCellProperties2 = new TableCellProperties();
            TableCellWidth tableCellWidth2 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa };

            tableCellProperties2.Append(tableCellWidth2);

            Paragraph paragraph5 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run11 = new Run();
            Text text10 = new Text();
            text10.Text = "Email";

            run11.Append(text10);

            paragraph5.Append(run11);

            tableCell2.Append(tableCellProperties2);
            tableCell2.Append(paragraph5);

            TableCell tableCell3 = new TableCell();

            TableCellProperties tableCellProperties3 = new TableCellProperties();
            TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa };

            tableCellProperties3.Append(tableCellWidth3);
            Paragraph paragraph6 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22" };

            paragraph6.Append(new Run(new Text(ii.Email)));

            tableCell3.Append(tableCellProperties3);
            tableCell3.Append(paragraph6);

            tableRow2.Append(tableCell2);
            tableRow2.Append(tableCell3);

            TableRow tableRow3 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" };

            TableCell tableCell4 = new TableCell();

            TableCellProperties tableCellProperties4 = new TableCellProperties();
            TableCellWidth tableCellWidth4 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa };

            tableCellProperties4.Append(tableCellWidth4);

            Paragraph paragraph7 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run12 = new Run();
            Text text11 = new Text();
            text11.Text = "Home Phone";

            run12.Append(text11);

            paragraph7.Append(run12);

            tableCell4.Append(tableCellProperties4);
            tableCell4.Append(paragraph7);

            TableCell tableCell5 = new TableCell();

            TableCellProperties tableCellProperties5 = new TableCellProperties();
            TableCellWidth tableCellWidth5 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa };

            tableCellProperties5.Append(tableCellWidth5);

            Paragraph paragraph8 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22" };

            Run run13 = new Run();

            RunProperties runProperties7 = new RunProperties();
            NoProof noProof7 = new NoProof();

            runProperties7.Append(noProof7);
            Text text12 = new Text();
            text12.Text = ii.HomePhone.FmtFone();

            run13.Append(runProperties7);
            run13.Append(text12);

            Run run14 = new Run();
            Text text13 = new Text() { Space = SpaceProcessingModeValues.Preserve };
            text13.Text = " ";

            run14.Append(text13);

            paragraph8.Append(run13);
            paragraph8.Append(run14);

            tableCell5.Append(tableCellProperties5);
            tableCell5.Append(paragraph8);

            tableRow3.Append(tableCell4);
            tableRow3.Append(tableCell5);

            TableRow tableRow4 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" };

            TableCell tableCell6 = new TableCell();

            TableCellProperties tableCellProperties6 = new TableCellProperties();
            TableCellWidth tableCellWidth6 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa };

            tableCellProperties6.Append(tableCellWidth6);

            Paragraph paragraph9 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run15 = new Run();
            Text text14 = new Text();
            text14.Text = "Cell Phone";

            run15.Append(text14);

            paragraph9.Append(run15);

            tableCell6.Append(tableCellProperties6);
            tableCell6.Append(paragraph9);

            TableCell tableCell7 = new TableCell();

            TableCellProperties tableCellProperties7 = new TableCellProperties();
            TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa };

            tableCellProperties7.Append(tableCellWidth7);

            Paragraph paragraph10 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run16 = new Run();

            RunProperties runProperties8 = new RunProperties();
            NoProof noProof8 = new NoProof();

            runProperties8.Append(noProof8);
            Text text15 = new Text();
            text15.Text = ii.CellPhone.FmtFone();

            run16.Append(runProperties8);
            run16.Append(text15);

            paragraph10.Append(run16);

            tableCell7.Append(tableCellProperties7);
            tableCell7.Append(paragraph10);

            tableRow4.Append(tableCell6);
            tableRow4.Append(tableCell7);

            TableRow tableRow5 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" };

            TableCell tableCell8 = new TableCell();

            TableCellProperties tableCellProperties8 = new TableCellProperties();
            TableCellWidth tableCellWidth8 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa };

            tableCellProperties8.Append(tableCellWidth8);

            Paragraph paragraph11 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run17 = new Run();
            Text text16 = new Text();
            text16.Text = "Work Phone";

            run17.Append(text16);

            paragraph11.Append(run17);

            tableCell8.Append(tableCellProperties8);
            tableCell8.Append(paragraph11);

            TableCell tableCell9 = new TableCell();

            TableCellProperties tableCellProperties9 = new TableCellProperties();
            TableCellWidth tableCellWidth9 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa };

            tableCellProperties9.Append(tableCellWidth9);

            Paragraph paragraph12 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run18 = new Run();

            RunProperties runProperties9 = new RunProperties();
            NoProof noProof9 = new NoProof();

            runProperties9.Append(noProof9);
            Text text17 = new Text();
            text17.Text = ii.WorkPhone.FmtFone();

            run18.Append(runProperties9);
            run18.Append(text17);

            paragraph12.Append(run18);

            tableCell9.Append(tableCellProperties9);
            tableCell9.Append(paragraph12);

            tableRow5.Append(tableCell8);
            tableRow5.Append(tableCell9);

            TableRow tableRow6 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" };

            TableCell tableCell10 = new TableCell();

            TableCellProperties tableCellProperties10 = new TableCellProperties();
            TableCellWidth tableCellWidth10 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa };

            tableCellProperties10.Append(tableCellWidth10);

            Paragraph paragraph13 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run19 = new Run();
            Text text18 = new Text();
            text18.Text = "Birthday";

            run19.Append(text18);

            paragraph13.Append(run19);

            tableCell10.Append(tableCellProperties10);
            tableCell10.Append(paragraph13);

            TableCell tableCell11 = new TableCell();

            TableCellProperties tableCellProperties11 = new TableCellProperties();
            TableCellWidth tableCellWidth11 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa };

            tableCellProperties11.Append(tableCellWidth11);

            Paragraph paragraph14 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00BC57A3", RsidRunAdditionDefault = "00FB1F22" };

            Run run20 = new Run();

            RunProperties runProperties10 = new RunProperties();
            NoProof noProof10 = new NoProof();

            runProperties10.Append(noProof10);
            Text text19 = new Text();
            text19.Text = ii.BirthDay;

            run20.Append(runProperties10);
            run20.Append(text19);

            paragraph14.Append(run20);

            tableCell11.Append(tableCellProperties11);
            tableCell11.Append(paragraph14);

            tableRow6.Append(tableCell10);
            tableRow6.Append(tableCell11);

            TableRow tableRow7 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" };

            TableCell tableCell12 = new TableCell();

            TableCellProperties tableCellProperties12 = new TableCellProperties();
            TableCellWidth tableCellWidth12 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa };

            tableCellProperties12.Append(tableCellWidth12);

            Paragraph paragraph15 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "006D0F9D", RsidRunAdditionDefault = "00FB1F22" };

            Run run21 = new Run();
            Text text20 = new Text();
            text20.Text = "Anniversary";

            run21.Append(text20);

            paragraph15.Append(run21);

            tableCell12.Append(tableCellProperties12);
            tableCell12.Append(paragraph15);

            TableCell tableCell13 = new TableCell();

            TableCellProperties tableCellProperties13 = new TableCellProperties();
            TableCellWidth tableCellWidth13 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa };

            tableCellProperties13.Append(tableCellWidth13);
            Paragraph paragraph16 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            paragraph16.Append(new Run(new Text(ii.Anniversary)));

            tableCell13.Append(tableCellProperties13);
            tableCell13.Append(paragraph16);

            tableRow7.Append(tableCell12);
            tableRow7.Append(tableCell13);

            TableRow tableRow8 = new TableRow() { RsidTableRowAddition = "00FB1F22", RsidTableRowProperties = "00731A43" };

            TableCell tableCell14 = new TableCell();

            TableCellProperties tableCellProperties14 = new TableCellProperties();
            TableCellWidth tableCellWidth14 = new TableCellWidth() { Width = "1435", Type = TableWidthUnitValues.Dxa };

            tableCellProperties14.Append(tableCellWidth14);

            Paragraph paragraph17 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            Run run22 = new Run();
            Text text21 = new Text();
            text21.Text = "Spouse";

            run22.Append(text21);

            paragraph17.Append(run22);

            tableCell14.Append(tableCellProperties14);
            tableCell14.Append(paragraph17);

            TableCell tableCell15 = new TableCell();

            TableCellProperties tableCellProperties15 = new TableCellProperties();
            TableCellWidth tableCellWidth15 = new TableCellWidth() { Width = "3122", Type = TableWidthUnitValues.Dxa };

            tableCellProperties15.Append(tableCellWidth15);

            Paragraph paragraph18 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00F06304", RsidRunAdditionDefault = "00FB1F22" };

            ParagraphProperties paragraphProperties1 = new ParagraphProperties();

            ParagraphMarkRunProperties paragraphMarkRunProperties1 = new ParagraphMarkRunProperties();
            NoProof noProof11 = new NoProof();

            paragraphMarkRunProperties1.Append(noProof11);

            paragraphProperties1.Append(paragraphMarkRunProperties1);

            Run run23 = new Run();

            RunProperties runProperties11 = new RunProperties();
            NoProof noProof12 = new NoProof();

            runProperties11.Append(noProof12);
            Text text22 = new Text();
            text22.Text = ii.Spouse;

            run23.Append(runProperties11);
            run23.Append(text22);

            paragraph18.Append(paragraphProperties1);
            paragraph18.Append(run23);

            tableCell15.Append(tableCellProperties15);
            tableCell15.Append(paragraph18);

            tableRow8.Append(tableCell14);
            tableRow8.Append(tableCell15);

            table1.Append(tableProperties1);
            table1.Append(tableGrid1);
            table1.Append(tableRow2);
            table1.Append(tableRow3);
            table1.Append(tableRow4);
            table1.Append(tableRow5);
            table1.Append(tableRow6);
            table1.Append(tableRow7);
            table1.Append(tableRow8);
            Paragraph paragraph19 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00485B24", RsidRunAdditionDefault = "00FB1F22" };

            tableCell1.Append(tableCellProperties1);
            tableCell1.Append(paragraph1);
            tableCell1.Append(paragraph2);
            if (paragraph2a != null)
                tableCell1.Append(paragraph2a);
            tableCell1.Append(paragraph3);
            tableCell1.Append(paragraph4);
            tableCell1.Append(table1);
            tableCell1.Append(paragraph19);

            TableCell tableCell16 = new TableCell();

            TableCellProperties tableCellProperties16 = new TableCellProperties();
            TableCellWidth tableCellWidth16 = new TableCellWidth() { Width = "4788", Type = TableWidthUnitValues.Dxa };
            TableCellVerticalAlignment tableCellVerticalAlignment1 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center };

            tableCellProperties16.Append(tableCellWidth16);
            tableCellProperties16.Append(tableCellVerticalAlignment1);
            tableCell16.Append(tableCellProperties16);

            Paragraph paragraph20 = new Paragraph() { RsidParagraphAddition = "00FB1F22", RsidParagraphProperties = "00960953", RsidRunAdditionDefault = "00FB1F22" };
            ParagraphProperties paragraphProperties2 = new ParagraphProperties();
            Justification justification1 = new Justification() { Val = JustificationValues.Center };

            paragraphProperties2.Append(justification1);
            paragraph20.Append(paragraphProperties2);

            if (iid.HasValue())
            {
                Run run24 = new Run();

                RunProperties runProperties12 = new RunProperties();
                NoProof noProof13 = new NoProof();

                runProperties12.Append(noProof13);

                Drawing drawing1 = new Drawing();

                Wp.Inline inline1 = new Wp.Inline()
                                    {
                                        DistanceFromTop = (UInt32Value)0U,
                                        DistanceFromBottom = (UInt32Value)0U,
                                        DistanceFromLeft = (UInt32Value)0U,
                                        DistanceFromRight = (UInt32Value)0U
                                    };
                Wp.Extent extent1 = new Wp.Extent() { Cx = 1428750L, Cy = 1905000L };
                Wp.EffectExtent effectExtent1 = new Wp.EffectExtent() { LeftEdge = 0L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L };
                Wp.DocProperties docProperties1 = new Wp.DocProperties() { Id = (UInt32Value)1U, Name = "Picture 1", Description = "D:\\Pictures\\ttt.jpg" };

                Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties1 =
                    new Wp.NonVisualGraphicFrameDrawingProperties();

                A.GraphicFrameLocks graphicFrameLocks1 = new A.GraphicFrameLocks() { NoChangeAspect = true };
                graphicFrameLocks1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

                nonVisualGraphicFrameDrawingProperties1.Append(graphicFrameLocks1);

                A.Graphic graphic1 = new A.Graphic();
                graphic1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main");

                A.GraphicData graphicData1 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" };

                Pic.Picture picture1 = new Pic.Picture();
                picture1.AddNamespaceDeclaration("pic", "http://schemas.openxmlformats.org/drawingml/2006/picture");

                Pic.NonVisualPictureProperties nonVisualPictureProperties1 = new Pic.NonVisualPictureProperties();
                Pic.NonVisualDrawingProperties nonVisualDrawingProperties1 = new Pic.NonVisualDrawingProperties()
                                                                             {
                                                                                 Id = (UInt32Value)0U,
                                                                                 Name = "Picture 459",
                                                                                 Description = "D:\\Pictures\\ttt.jpg"
                                                                             };

                Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties1 =
                    new Pic.NonVisualPictureDrawingProperties();
                A.PictureLocks pictureLocks1 = new A.PictureLocks() { NoChangeAspect = false, NoChangeArrowheads = true };

                nonVisualPictureDrawingProperties1.Append(pictureLocks1);

                nonVisualPictureProperties1.Append(nonVisualDrawingProperties1);
                nonVisualPictureProperties1.Append(nonVisualPictureDrawingProperties1);

                Pic.BlipFill blipFill1 = new Pic.BlipFill();

                A.Blip blip1 = new A.Blip() { Embed = iid };

                A.BlipExtensionList blipExtensionList1 = new A.BlipExtensionList();

                A.BlipExtension blipExtension1 = new A.BlipExtension() { Uri = "{28A0092B-C50C-407E-A947-70E740481C1C}" };

                A14.UseLocalDpi useLocalDpi1 = new A14.UseLocalDpi() { Val = false };
                useLocalDpi1.AddNamespaceDeclaration("a14", "http://schemas.microsoft.com/office/drawing/2010/main");

                blipExtension1.Append(useLocalDpi1);

                blipExtensionList1.Append(blipExtension1);

                blip1.Append(blipExtensionList1);
                A.SourceRectangle sourceRectangle1 = new A.SourceRectangle();

                A.Stretch stretch1 = new A.Stretch();
                A.FillRectangle fillRectangle1 = new A.FillRectangle();

                stretch1.Append(fillRectangle1);

                blipFill1.Append(blip1);
                blipFill1.Append(sourceRectangle1);
                blipFill1.Append(stretch1);

                Pic.ShapeProperties shapeProperties1 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto };

                A.Transform2D transform2D1 = new A.Transform2D();
                A.Offset offset1 = new A.Offset() { X = 0L, Y = 0L };
                A.Extents extents1 = new A.Extents() { Cx = 1428750L, Cy = 1905000L };

                transform2D1.Append(offset1);
                transform2D1.Append(extents1);

                A.PresetGeometry presetGeometry1 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle };
                A.AdjustValueList adjustValueList1 = new A.AdjustValueList();

                presetGeometry1.Append(adjustValueList1);
                A.NoFill noFill1 = new A.NoFill();

                A.Outline outline1 = new A.Outline();
                A.NoFill noFill2 = new A.NoFill();

                outline1.Append(noFill2);

                shapeProperties1.Append(transform2D1);
                shapeProperties1.Append(presetGeometry1);
                shapeProperties1.Append(noFill1);
                shapeProperties1.Append(outline1);

                picture1.Append(nonVisualPictureProperties1);
                picture1.Append(blipFill1);
                picture1.Append(shapeProperties1);

                graphicData1.Append(picture1);

                graphic1.Append(graphicData1);

                inline1.Append(extent1);
                inline1.Append(effectExtent1);
                inline1.Append(docProperties1);
                inline1.Append(nonVisualGraphicFrameDrawingProperties1);
                inline1.Append(graphic1);

                drawing1.Append(inline1);

                run24.Append(runProperties12);
                run24.Append(drawing1);

                paragraph20.Append(run24);
            }
            tableCell16.Append(paragraph20);

            BookmarkStart bookmarkStart1 = new BookmarkStart() { Name = "_GoBack", Id = "0" };
            BookmarkEnd bookmarkEnd1 = new BookmarkEnd() { Id = "0" };

            tableRow1.Append(tableRowProperties1);
            tableRow1.Append(tableCell1);
            tableRow1.Append(tableCell16);
            tableRow1.Append(bookmarkStart1);
            tableRow1.Append(bookmarkEnd1);
            return tableRow1;
        }
Exemplo n.º 60
0
        public static void DrawStringFixedHeight(this SpriteBatch sb, SpriteFont font, string text, Vector2 position, Color color, float maxFontHeight, Justification justification = Justification.Middle, float strokeWidth = 0.0f, Color?strokeColor = null)
        {
            Vector2 size      = MeasureString(font, text);
            float   yScale    = (maxFontHeight / size.Y);
            int     strWidth  = (int)Math.Round(size.X * yScale);
            int     strHeight = (int)Math.Round(size.Y * yScale);

            float xOffset = 0, yOffset = 0;

            if (justification.HasFlag(Justification.Right))
            {
                xOffset += -strWidth;
            }
            else if (justification.HasFlag(Justification.Center))
            {
                xOffset += -strWidth / 2;
            }
            if (!justification.HasFlag(Justification.Bottom) && !justification.HasFlag(Justification.Middle))
            {
                //yOffset += 0;
            }
            else if (justification.HasFlag(Justification.Bottom))
            {
                yOffset += -strHeight;
            }
            else if (justification.HasFlag(Justification.Middle))
            {
                yOffset += -strHeight / 2;
            }
            Vector2 offset = new Vector2(xOffset, yOffset);

            if (_drawBoundingBox)
            {
                sb.Draw(Globals.Textures["BeatMark"], new Rectangle((int)(position.X + offset.X), (int)(position.Y + offset.Y), strWidth, strHeight), Color.Red);
            }

            if (strokeWidth > 0.0f)
            {
                if (strokeColor == null)
                {
                    strokeColor = Color.Black;
                }
                DrawStringStroke(sb, font, text, position + offset, strokeWidth, (Color)strokeColor, yScale, StrokeStyle.All);
            }
            sb.DrawStringAbs(font, text, position + offset, color, yScale);
        }