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.

FpLayoutCellAttributes

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")

Applies to | FPHTMLAnchorElement Object | FPHTMLAreaElement Object | FPHTMLBaseElement Object | FPHTMLBaseFontElement Object | FPHTMLBGsound Object | FPHTMLBlockElement Object | FPHTMLBody Object | FPHTMLBRElement Object | FPHTMLButtonElement Object | FPHTMLCommentElement Object | FPHTMLCOpsProfile Object | FPHTMLDDElement Object | FPHTMLDivElement Object | FPHTMLDivPosition Object | FPHTMLDListElement Object | FPHTMLDTElement Object | FPHTMLEmbed Object | FPHTMLFieldSetElement Object | FPHTMLFontElement Object | FPHTMLFormElement Object | FPHTMLFrameBase Object | FPHTMLFrameElement Object | FPHTMLFrameSetSite Object | FPHTMLFrontPageBotElement Object | FPHTMLHeaderElement Object | FPHTMLHRElement Object | FPHTMLIFrame Object | FPHTMLImg Object | FPHTMLInputButtonElement Object | FPHTMLInputFileElement Object | FPHTMLInputHiddenElement Object | FPHTMLInputImage Object | FPHTMLInputTextElement Object | FPHTMLIsIndexElement Object | FPHTMLLabelElement Object | FPHTMLLegendElement Object | FPHTMLLIElement Object | FPHTMLLinkElement Object | FPHTMLListElement Object | FPHTMLMapElement Object | FPHTMLMarqueeElement Object | FPHTMLMetaElement Object | FPHTMLNextIdElement Object | FPHTMLNoShowElement Object | FPHTMLObjectElement Object | FPHTMLOListElement Object | FPHTMLOptionElement Object | FPHTMLParaElement Object | FPHTMLPhraseElement Object | FPHTMLScriptElement Object | FPHTMLSelectElement Object | FPHTMLSpanElement Object | FPHTMLSpanFlow Object | FPHTMLStyle Object | FPHTMLStyleElement Object | FPHTMLTable Object | FPHTMLTableCaption Object | FPHTMLTableCell Object | FPHTMLTableCol Object | FPHTMLTableRow Object | FPHTMLTableSection Object | FPHTMLTemplateRegionElement Object | FPHTMLTextAreaElement Object | FPHTMLTextElement Object | FPHTMLTitleElement Object | FPHTMLUListElement Object | FPHTMLUnknownElement Object | FPHTMLWebPartElement Object | FPHTMLWebPartZoneElement Object | FPHTMLXSLElement Object | FPHTMLXSLWebPartElement Object | FPLayoutRegion Object | IFPLayoutRegion Object | IHTMLElement Object | IHTMLOpsProfile Object | IHTMLRuleStyle Object | IHTMLStyle Object