getAttribute Method
As it applies to the FPLayoutRegion object
Returns a Variant that represents the value of the specified attribute.
expression.getAttribute(attr)
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_color |
border_bottom_size |
border_foot_color |
border_foot_size |
border_head_color |
border_head_size |
border_left_color |
border_left_size |
border_right_color |
border_right_size |
border_top_color |
border_top_size |
cellFomattingID |
content_color |
content_html |
content_padding |
content_type |
content_valign |
corner_bottom_left_border_color |
corner_bottom_left_color |
corner_bottom_left_height |
corner_bottom_left_imageurl |
corner_bottom_left_type |
corner_bottom_left_width |
corner_bottom_right_border_color |
corner_bottom_right_color |
corner_bottom_right_height |
corner_bottom_right_imageurl |
corner_bottom_right_type |
corner_bottom_right_width |
corner_top_left_border_color |
corner_top_left_color |
corner_top_left_height |
corner_top_left_imageurl |
corner_top_left_type |
corner_top_left_width |
corner_top_right_border_color |
corner_top_right_color |
corner_top_right_height |
corner_top_right_imageurl |
corner_top_right_type |
corner_top_right_width |
footer_color |
footer_html |
footer_padding |
footer_size |
footer_valign |
header_color |
header_padding |
header_size |
header_html |
header_valign |
height |
is_cell |
is_table |
margin_bottom |
margin_left |
margin_right |
margin_top |
parent |
shadow_color |
shadow_position |
shadow_size |
shadow_smooth |
width |
As it applies to all other objects in the Applies To list
Returns a Variant that represents the value of the specified attribute.
expression.getAttribute(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.
lFlags Optional Variant. The value of the object.
Example
As it applies to the FPHTMLBody object
The following example sets the position attribute for the body of the active document.
Dim strAttribute As String
strAttribute = ActiveDocument.body _
.Style.getAttribute("position")