Private Shared Sub Main(ByVal args As String()) Set format for the footnote reference markį = "Calibri" į = 12 į = true į = Color.DarkGreen ĭocument.SaveToFile("InsertFootnote.docx", FileFormat.Docx2013) TextRange = ().AppendText("Developed by E-iceblue Co., LTD.") Insert the footnote reference mark after the text range Int index = (textRange) įootnote footnote = paragraph.AppendFootnote(FootnoteType.Footnote) Get the index of the text range in the paragraph Paragraph paragraph = textRange.OwnerParagraph Get the owner paragraph of the text range TextRange textRange = selection.GetAsOneRange() Get the found text as a single text range TextSelection selection = document.FindString("Spire.Doc for. Load a Word a specific text in the document Initialize an instance of the Document class
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |