Causes a string to be displayed in the specified font size as if it were in a <FONT SIZE=size> tag.
String
fontsize(size)
size
An integer between 1 and 7, a string representing a signed integer between 1 and 7.
Use the fontsize method with the Write method to format and display a string in a document.
When you specify size as an integer, you set the size of stringName to one of the 7 defined sizes. When you specify size as a string such as "-2", you adjust the font size of stringName relative to the size set in the BASEFONT tag.
The following example uses string methods to change the size of a string:
var worldString="Hello, world" Console.Write(worldString.small()) Console.Write("<P>" + worldString.big()) Console.Write("<P>" + worldString.fontsize(7))
The previous example produces the same output as the following HTML:
String.big, String.small