Para.AppendText( “2”).CharacterFormat.SubSuperScript =. Para.AppendText( “n”).CharacterFormat.SubSuperScript =.
Step 3: Just like step 2, here in this step I created subscripted text in a math equation and a chemical formula. Para.AppendText( “2”).CharacterFormat.SubSuperScript = SubSuperScript.SuperScript Type the value you want and then type: the for superscript (example: x2 for x squared) the (underscore) for subscript. Select the inline equation option from the drop-down menu. Click in the body of the Notion page and type /math. To access those symbols, head over to the Insert tab and then click. Word and PowerPoint also offer several different preformatted superscript and subscript symbols for you to use.
Following code will set some texts as Superscript. Open Notion to the page where you want to write the superscript and/or subscript. Superscript: Select the text, then press Ctrl+Shift+Plus sign (+) Subscript: Select the text then press Ctrl+ Inserting Superscript or Subscript Symbols. You can achieve this by navigating to the insert tab, then equation and lastly script where you will find a formatted box with the superscript and subscript vertically aligned.
For the text that you want to make it as Superscript or Subscript, just set the value of property as SuperScript or SubScript. How can I add superscript and subscript at the same time in Word How to write a superscript and subscript at the same time which are vertically aligned in Microsoft Word. Step 2: Append text to paragraph using AppendText() method. These lines of code create a Word document and add a blank paragraph on it. Step 1: Initialize a new instance of class, add a section, and add a paragraph. understandable since Google Sheets was built to work with numbers and is not a word processor. In the following section, let’s see detailed steps for inserting Superscript and Subscript with code. Want to add a subscript or superscript in Google Sheets. This article is talking about how to add Superscript and Subscript in Word via Free Spire.Docin C#.Īs a standalone component, free Spire.Doc enables developers/programmers to perform plenty range of operations on Word file, such as create, modify, convert and print. Subscripts and superscripts are often used in math equations, chemical formulas, or behind a phrase(such as a book name, an author name, a theory) that you want to explain more at the bottom of your page. A subscript or superscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly below or above it.