Esempio n. 1
0
 public OpinionDocument()
 {
     OverallEvaluationRank = 1;
     OverallEvaluationContent = string.Empty;
     Discussion = new FormattedContent();
     InvestmentStaff = new OpinionDocumentSection();
     OrganizationalStability = new OpinionDocumentSection();
     AssetAllocation = new OpinionDocumentSection();
     Research = new OpinionDocumentSection();
     CountrySelection = new OpinionDocumentSection();
     PortfolioConstruction = new OpinionDocumentSection();
     CurrencyManagement = new OpinionDocumentSection();
     Implementation = new OpinionDocumentSection();
     SecuritySelection = new OpinionDocumentSection();
     SellDiscipline = new OpinionDocumentSection();
 }
        private static IEnumerable<OpenXmlElement> CreateTopicText(DocumentFormat.OpenXml.Packaging.MainDocumentPart mainDocumentPart, FormattedContent formattedContent)
        {
            var formattedContentParagraphs = formattedContent.ToOpenXmlElements(mainDocumentPart);

            foreach (var para in formattedContentParagraphs)
            {
                if (para is Paragraph)
                {
                    if (((Paragraph)para).ParagraphProperties == null)
                    {
                        ParagraphProperties paragraphProperties22 = new ParagraphProperties();
                        ParagraphStyleId paragraphStyleId22 = new ParagraphStyleId() { Val = "StyleAfter0pt" };
                        SpacingBetweenLines spacingBetweenLines16 = new SpacingBetweenLines() { After = "360" };

                        paragraphProperties22.Append(paragraphStyleId22);
                        paragraphProperties22.Append(spacingBetweenLines16);
                        para.InsertAt(paragraphProperties22, 0);
                    }
                }
            }

            return formattedContentParagraphs;
        }
Esempio n. 3
0
 public override object Clone()
 {
     var clone = new FormattedContent();
     clone.DeepCopyChildren(Children);
     return clone;
 }