Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a ScriptType object that represents whether the text in this formatting is set to superscript, subscript, or none.

Signature
C#
C#

 public ScriptType SuperSubScript{ get; set; }
Signature
vb.net
vb.net

Public Property SuperSubScript() As ScriptType
Remarks

MS Word equivalent: Format menu > Font... > Font tab > Effects section > Superscript and Subscript

Example
Code Block
csharp
csharp
titleC#
            //--- Return ScriptType
          Font.ScriptType oSuperSubScript = oFont.SuperSubScript;

          //--- Set SuperSubScript to superscript
          oFont.SuperSubScript = Font.ScriptType.Super;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return SuperSubScript
          Dim oSuperSubScript As Font.ScriptType = oFont.SuperSubScript

          '--- Set SuperSubScript to superscript
          oFont.SuperSubScript = Font.ScriptType.Super