posWidth Property

Microsoft FrontPage Visual Basic

posWidth Property

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

expression.posWidth

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