Aspose.Words.Examples.CSharp.Programming_Documents.Working_With_Document.DocumentBuilderInsertElements.InsertHtml C# (CSharp) 메소드

InsertHtml() 공개 정적인 메소드

public static InsertHtml ( string dataDir ) : void
dataDir string
리턴 void
        public static void InsertHtml(string dataDir)
        {
            // ExStart:DocumentBuilderInsertHtml
            Document doc = new Document();
            DocumentBuilder builder = new DocumentBuilder(doc);

            builder.InsertHtml(
                "<P align='right'>Paragraph right</P>" +
                "<b>Implicit paragraph left</b>" +
                "<div align='center'>Div center</div>" +
                "<h1 align='left'>Heading 1 left.</h1>");
            dataDir = dataDir + "DocumentBuilderInsertHtml_out.doc";
            doc.Save(dataDir);
            // ExEnd:DocumentBuilderInsertHtml
            Console.WriteLine("\nHTML using DocumentBuilder inserted successfully into a document.\nFile saved at " + dataDir);
        }
        public static void InsertHyperlink(string dataDir)