示例#1
0
        public static string ToHtml(this DocumentPart documentPart)
        {
            IVisitor <DocumentPart, string> visitor = new ToHtmlVisitor();

            return(visitor.DynamicVisit(documentPart));
        }
示例#2
0
        public static string ToPlainText(this DocumentPart documentPart)
        {
            IVisitor <DocumentPart, string> visitor = new ToPlainTextVisior();

            return(visitor.DynamicVisit(documentPart));
        }
示例#3
0
 public string DynamicVisit(DocumentPart part) =>
 Visit((dynamic)part);