posHeight Property

Microsoft FrontPage Visual Basic

posHeight Property

Sets or returns a Single that represents the height of an element in the units specified by the cascading style sheets height attribute.

expression.posHeight

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

Example

The following example sets the height and width of the cascading style sheet attributes for the first image in the active document.

    Dim objImage As FPHTMLImg

Set objImage = ActiveDocument.all.tags("img").Item(0)

With objImage.Style
    .posHeight = 25
    .posWidth = 100
End With