Example #1
0
        }         // RtfHtmlConverter

        // ----------------------------------------------------------------------
        public RtfHtmlConverter(IRtfDocument rtfDocument, RtfHtmlConvertSettings settings)
        {
            if (rtfDocument == null)
            {
                throw new ArgumentNullException("rtfDocument");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            this.rtfDocument  = rtfDocument;
            this.settings     = settings;
            specialCharacters = new RtfHtmlSpecialCharCollection(settings.SpecialCharsRepresentation);
        }         // RtfHtmlConverter
        } // RtfHtmlConverter

        public RtfHtmlConverter(IRtfDocument rtfDocument, RtfHtmlConvertSettings settings)
        {
            if (rtfDocument == null)
            {
                throw new ArgumentNullException(nameof(rtfDocument));
            }
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            RtfDocument       = rtfDocument;
            Settings          = settings;
            SpecialCharacters = new RtfHtmlSpecialCharCollection(settings.SpecialCharsRepresentation);
        } // RtfHtmlConverter