Share via


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"

Applies to | FPHTMLIFrame Object | FPHTMLImg Object | FPHTMLInputImage Object | FPHTMLMarqueeElement Object | FPHTMLObjectElement Object | IHTMLIFrameElement Object | IHTMLImgElement Object | IHTMLInputImage Object | IHTMLMarqueeElement Object | IHTMLObjectElement Object