コード例 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="mainPart">The mainDocumentPart of a document where to write the conversion to.</param>
 /// <remarks>We preload some configuration from inside the document such as style, bookmarks,...</remarks>
 public HtmlConverter(MainDocumentPart mainPart)
 {
     this.mainPart = mainPart;
     this.RenderPreAsTable = true;
     this.ImageProcessing = ImageProcessing.AutomaticDownload;
     this.knownTags = InitKnownTags();
     this.htmlStyles = new HtmlDocumentStyle(mainPart);
     this.knownImageParts = new Dictionary<Uri, CachedImagePart>();
     this.WebProxy = new WebProxy();
 }
コード例 #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="mainPart">The mainDocumentPart of a document where to write the conversion to.</param>
        /// <remarks>We preload some configuration from inside the document such as style, bookmarks,...</remarks>
        public HtmlConverter(MainDocumentPart mainPart)
        {
            if (mainPart == null)
            {
                throw new ArgumentNullException("mainPart");
            }

            this.mainPart         = mainPart;
            this.RenderPreAsTable = true;
            this.ImageProcessing  = ImageProcessing.AutomaticDownload;
            this.knownTags        = this.InitKnownTags();
            this.htmlStyles       = new HtmlDocumentStyle(mainPart);
            this.knownImageParts  = new Dictionary <Uri, CachedImagePart>();
            this.WebProxy         = new WebProxy();
        }
コード例 #3
0
 internal TableStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
     paragraphStyle     = new ParagraphStyleCollection(documentStyle);
 }
コード例 #4
0
 internal ParagraphStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
 }
コード例 #5
0
 internal RunStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
 }
コード例 #6
0
 internal TableStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
     paragraphStyle = new ParagraphStyleCollection(documentStyle);
 }
コード例 #7
0
 internal ParagraphStyleCollection(HtmlDocumentStyle documentStyle)
 {
     this.documentStyle = documentStyle;
 }