textTransform Property

Microsoft FrontPage Visual Basic

textTransform Property

Sets or returns a String that represents whether text is displayed by using uppercase, lowercase, or mixed case.

expression.textTransform

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

Remarks

The textTransform property can be one of the following String values:

ValueDescription
noneText is not transformed.
capitalize Transforms the first character of each word to uppercase.
uppercaseTransforms all the characters to uppercase.
lowercaseTransforms all the characters to lowercase.

Example

The following example displays the text in the body of the active document in uppercase characters.

    Dim objStyle As FPHTMLStyle

Set objStyle = ActiveDocument.body.Style
objStyle.textTransform = "uppercase"