Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns the vertical position of the font in relation to other text. 
{excerpt}
{signature:C#}
 public VerticalPosition ScriptStyle{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property ScriptStyle() As 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.

{signature}
{remarks}
If the vertical position is [Superscript|Font.VerticalPosition#Superscript], the font will be slightly higher than other text. If the vertical position is [Subscript|Font.VerticalPosition#Subscript], the font will be slightly lower than other text. If the vertical position is set to [None|Font.VerticalPosition#None], the font will be displayed normally.
{remarks}
{example}{code:csharp|title=C#}

          //--- Get ScriptStyle
          Font.VerticalPosition scrStyle = fnt.ScripstStyle;

          //--- Set ScriptStyle
          fnt.ScriptStyle = Font.VerticalPosition.Subscript;
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get ScriptStyle
          Dim scrStyle As Font.VerticalPosition = fnt.ScriptStyle

          '--- Set ScriptStyle
          fnt.ScriptStyle = Font.VerticalPosition.Subscript
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle