height Property

Microsoft FrontPage Visual Basic

height Property

Returns or sets a String that represents the height of the specified object. The height property corresponds to the height attribute of the specified object.

expression.height

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

Remarks

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

height Integer that specifies the height of the object, in pixels.
percentage Integer, followed by a % sign. The value is a percentage of the height of the parent object.

Example

The following example sets the height of the first table in the active document to 100% of the height of the browser window. This example assumes that there is at least one table in the active document.

    Dim objTable As FPHTMLTable
Set objTable = ActiveDocument.all.tags("table").Item(0)
objTable.Height = "100%"