text Property

Microsoft FrontPage Visual Basic

text Property

Returns or sets a Variant (in the case of the FPHTMLBody and IHTMLBodyElement objects) or a String (in the case of all other objects in the Applies To list) that represents the color of text in the specified object.

expression.text

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

Color values can be specified as color names or Web-safe red-green-blue (RGB) color values. For more information on available color names and RGB color values, see the HTML Color Table.

Example

The following example sets the color of the text in the active document to blue.

    ActiveDocument.body.Text = "blue"