Page tree

Versions Compared

Key

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

Description

Excerpt

Sets or returns the vertical position of the font in relation to other text.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public VerticalPosition ScriptStyle{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property ScriptStyle() As VerticalPosition</p>VerticalPosition
Remarks

If the vertical position is Superscript, the font will be slightly higher than other text. If the vertical position is Subscript, the font will be slightly lower than other text. If the vertical position is set to None, the font will be displayed normally.

Example
Code Block
csharp
csharp
titleC#
            //--- Get ScriptStyle
          Font.VerticalPosition scrStyle = fnt.ScripstStyle;

          //--- Set ScriptStyle
          fnt.ScriptStyle = Font.VerticalPosition.Subscript;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Get ScriptStyle
          Dim scrStyle As Font.VerticalPosition = fnt.ScriptStyle

          '--- Set ScriptStyle
          fnt.ScriptStyle = Font.VerticalPosition.Subscript