setAttribute Method

Microsoft FrontPage Visual Basic

Show All Show All

setAttribute Method

ShowAs it applies to the FPLayoutRegion object.

Sets the specified attribute to the given value.

expression.setAttribute(attr, val)

expression    Required. An expression that returns an FPLayoutRegion object.

attr    Required FpLayoutCellAttributes. Specifies the attribute.

FpLayoutCellAttributes can be one of the following FpLayoutCellAttributes constants.

border_bottom_colorFor a list of possible values, see the setBorderColor method.
border_bottom_sizeFor a list of possible values, see the setBorderSize method.
border_foot_colorFor a list of possible values, see the setBorderColor method.
border_foot_sizeFor a list of possible values, see the setBorderSize method.
border_head_colorFor a list of possible values, see the setBorderColor method.
border_head_sizeFor a list of possible values, see the setBorderSize method.
border_left_colorFor a list of possible values, see the setBorderColor method.
border_left_sizeFor a list of possible values, see the setBorderSize method.
border_right_colorFor a list of possible values, see the setBorderColor method.
border_right_sizeFor a list of possible values, see the setBorderSize method.
border_top_colorFor a list of possible values, see the setBorderColor method.
border_top_sizeFor a list of possible values, see the setBorderSize method.
cellFomattingIDFor a list of possible values, see the cellFormattingID property.
content_colorFor a list of possible values, see the setContentColor method.
content_htmlFor a list of possible values, see the setContentHtml method.
content_paddingFor a list of possible values, see the setContentPadding method.
content_typeFor a list of possible values, see the setContentType method.
content_valignFor a list of possible values, see the setContentVAlign method.
corner_bottom_left_border_colorFor a list of possible values, see the setCornerBorderColor method.
corner_bottom_left_colorFor a list of possible values, see the setCornerColor method.
corner_bottom_left_heightFor a list of possible values, see the setCornerHeight method.
corner_bottom_left_imageurlFor a list of possible values, see the setCornerImageUrl method.
corner_bottom_left_typeFor a list of possible values, see the setCorner method.
corner_bottom_left_widthFor a list of possible values, see the setCornerWidth method.
corner_bottom_right_border_colorFor a list of possible values, see the setCornerBorderColor method.
corner_bottom_right_colorFor a list of possible values, see the setCornerColor method.
corner_bottom_right_heightFor a list of possible values, see the setCornerHeight method.
corner_bottom_right_imageurlFor a list of possible values, see the setCornerImageUrl method.
corner_bottom_right_typeFor a list of possible values, see the setCorner method.
corner_bottom_right_widthFor a list of possible values, see the setCornerWidth method.
corner_top_left_border_colorFor a list of possible values, see the setCornerBorderColor method.
corner_top_left_colorFor a list of possible values, see the setCornerColor method.
corner_top_left_heightFor a list of possible values, see the setCornerHeight method.
corner_top_left_imageurlFor a list of possible values, see the setCornerImageUrl method.
corner_top_left_typeFor a list of possible values, see the setCorner method.
corner_top_left_widthFor a list of possible values, see the setCornerWidth method.
corner_top_right_border_colorFor a list of possible values, see the setCornerBorderColor method.
corner_top_right_colorFor a list of possible values, see the setCornerColor method.
corner_top_right_heightFor a list of possible values, see the setCornerHeight method.
corner_top_right_imageurlFor a list of possible values, see the setCornerImageUrl method.
corner_top_right_typeFor a list of possible values, see the setCorner method.
corner_top_right_widthFor a list of possible values, see the setCornerWidth method.
footer_colorFor a list of possible values, see the setFooterColor method.
footer_htmlFor a list of possible values, see the setFooterHtml method.
footer_paddingFor a list of possible values, see the setFooterPadding method.
footer_sizeFor a list of possible values, see the setFooterSize method.
footer_valignFor a list of possible values, see the setFooterVAlign method.
header_colorFor a list of possible values, see the setHeaderColor method.
header_paddingFor a list of possible values, see the setHeaderPadding method.
header_sizeFor a list of possible values, see the setHeaderSize method.
header_htmlFor a list of possible values, see the setHeaderHtml method.
header_valignFor a list of possible values, see the setHeaderVAlign method.
heightFor a list of possible values, see the setHeight method.
is_cellFor a list of possible values, see the isCell property.
is_tableFor a list of possible values, see the isTable property.
margin_bottomFor a list of possible values, see the setMargin method.
margin_leftFor a list of possible values, see the setMargin method.
margin_rightFor a list of possible values, see the setMargin method.
margin_topFor a list of possible values, see the setMargin method.
parentFor a list of possible values, see the parent property.
shadow_colorFor a list of possible values, see the setShadowColor method.
shadow_positionFor a list of possible values, see the setShadowPosition method.
shadow_sizeFor a list of possible values, see the setShadowSize method.
shadow_smoothFor a list of possible values, see the setShadowSmooth method.
widthFor a list of possible values, see the setWidth method.

val Required Variant. Specifies the attribute value.

ShowAs it applies to all other objects in the Applies To list.

Sets the attribute for an element.

expression.setAttribute(strAttributeName, lFlags)

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

strAttributeName    Required String. The name of the attribute.

AttributeValue    Required Variant. The value of the attribute.

lFlags    Optional Long. The value of the object.

Remarks

Use the setAttribute method to programmatically set a read-only property that has a corresponding attribute or an attribute for which there is no property in the Microsoft FrontPage object model.

Example

As it applies to FPHTMLStyle object.

The following example sets the style attribute's position property for the BODY element of the active document. The position property is read only, so the setAttribute method is the only way to set the position property programmatically.

        If ActiveDocument.body.Style.Position = "" Then
    ActiveDocument.body.Style.setAttribute "position", "absolute"
End If