gridger.blogg.se

Subscript on word document
Subscript on word document











This example checks the selected text for subscript formatting. Set myRange ActiveDocument.Range (Start:0, End:0) myRange.InsertAfter 'Water H20' myRange.Characters (10).Font.Subscript True. If you'd like to remove the evaluation message from the generated documents, or to get rid of the function limitations, please request a 30-day trial license for yourself. This example inserts text at the beginning of the active document and formats the tenth character as subscript. 'Set font size for the text in the paragraphĭim textRange As TextRange = Tr圜ast(item, TextRange)ĭocument.SaveToFile("InsertSuperscriptAndSubscript.docx", FileFormat.Docx2013) 'Apply subscript formatting to the subscript text Paragraph.AppendBreak(BreakType.LineBreak)ĭim subscriptText As TextRange = paragraph.AppendText("2") 'Apply superscript formatting to the superscript text In todays lesson, you will learn how to type subscript and superscript in Word for macOS.Open the document you need. On the Format menu, click Font, and then click the Font tab. Private Shared Sub Main(ByVal args As String())ĭim document As Document = New Document()ĭim section As Section = document.Sections(0)ĭim paragraph As Paragraph = section.AddParagraph()ĭim superscriptText As TextRange = paragraph.AppendText("2") Select the text you want to format as superscript or subscript. = 36f ĭocument.SaveToFile("InsertSuperscriptAndSubscript.docx", FileFormat.Docx2013)

subscript on word document

Set font size for the text in the paragraph Apply subscript formatting to the subscript text

subscript on word document

TextRange subscriptText = paragraph.AppendText("2") Paragraph.AppendBreak(BreakType.LineBreak) Apply superscript formatting to the superscript text TextRange superscriptText = paragraph.AppendText("2") Paragraph paragraph = section.AddParagraph()













Subscript on word document