Version

Using Subscript and Superscript

Topic Overview

Purpose

This topic provides a conceptual overview of how to use subscript and superscript formatting in the FormattedTextEditor or FormattedLinkLabel controls.

Required Background

The following topics are prerequisites to understanding this topic:

Topic Purpose

In this section you’ll find any information that will help you to better understand the functionalities of the FormattedTextEditor control, as well as why you would want to use it to as part of building your applications.

This section contains valuable information about FormattedLinkLabel, ranging from what the control does and why you would want to use it in your application, to step-by-step procedures on how to accomplish a common task using the control.

In this topic

This topic contains the following sections:

Subscript and Superscript Overview

Overview

Subscript or Superscript is text that is displayed in a slightly smaller than normal font and is either slightly above or below the normal baseline.

Preview

Subscripts are often used in chemical formulas:

H2O

C6H12O6

An example of superscript is when using ordinal indicators:

1st, 2nd, 3rd, 4th

Formatting Text

Subscript and superscript text may be added to the FormattedTextEditor or FormattedLinkLabel controls in one of two ways: either using a tag or a style.

Format Sample text Tag Style

Subscript

H2O

H<sub>2</sub>

H<span >2</span>0

Superscript

July 4th

July 4<sup>th</sup>

July 4<span >th</span>

Note that Subscript and Superscript can be combined with other formatting attributes. For example, it is possible for the Superscript to be bold or underlined.

Format Sample text Tag Style

Superscript

July 4th

July 4<u><sup>th</sup></u>

July 4<span >th</span>

Keyboard support

Format Keyboard shortcut

Subscript

Ctrl + =

Superscript

Ctrl + Shift + =

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

Contains general information on formatting text in the FormattedTextEditor or FormattedLinkLabel

Contains specific information about the Style attribute, including the Vertical-align tag sub-attribute which controls superscript and subscript.