Xbasic

Office::Script Enumeration

Description

Defines where the font is rendered relative to the normal line of type.

Script
Description
Office::Script::Normal

Value = 0. The font is rendered along the normal line of type.

Office::Script::Super

Value = 1. The font is rendered above the line of type.

Office::Script::Sub

Value = 2. The font is rendered below the line of type.

Example

The following example demonstrates setting the script for an Office::Font object in an Office::ExcelDocument object:

dim document as Office::ExcelDocument
dim font as Office::Font

font = document.getFont(1)
font.script = Office::Script::Super
showvar(font)