hspace Property

Microsoft FrontPage Visual Basic

hspace Property

Returns or sets a Long that represents the horizontal margin for the specified object. Corresponds to the hspace attribute.

expression.hspace

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

Example

The following example sets the horizontal margin for the first image in the active document to 25 pixels.

    Dim objImage As FPHTMLImg

Set objImage = ActiveDocument.images(0)

objImage.hspace = "25"