italics

Causes a string to be italic, as if it were in an I tag.

Applies to

String

Syntax

italics()

Parameters

None

Description

Use the italics method with the Write method to format and display a string in a document.

Example

The following example uses string methods to change the formatting of a string:

var worldString="Hello, world"
Console.Write(worldString.blink())
Console.Write(worldString.bold())
Console.Write(worldString.italics())
Console.Write(worldString.strike())

The previous example produces the same output as the following HTML:

<BLINK>Hello, world</BLINK>
<P><B>Hello, world</B>
<P><I>Hello, world</I>
<P><STRIKE>Hello, world</STRIKE>

See also

String:blink, String:bold, String:strike