IHTMLDivElement::align Property

Sets or retrieves the alignment of the object relative to the display or table.

Syntax

HRESULT IHTMLDivElement::get_align(BSTR *p);
HRESULT IHTMLDivElement::put_align(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
  • v
    BSTR that specifies one of the values listed in Possible Values.

Possible Values

center Aligns to the center.
justify Aligns to the left and right edge.
left Default. Aligns to the left edge.
right Aligns to the right edge.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The default value for the th element is center.

The justify possible value is available only for the div, hn, and p elements.