IHTMLDivElement

IHTMLDivElement


The DIV element is used with the className property to represent different kinds of containers.

This element is a block element.

IHTMLDivElement Methods
put_align   get_align
put_noWrap   get_noWrap

IHTMLDivElement::put_align

HRESULT put_align(
    BSTR v
);

Sets the alignment of the element.

v
String specifying the alignment. Can be one of these values:
center Align to the center.
left Align to the left edge.
right Align to the right edge.

See also get_align

IHTMLDivElement::get_align

HRESULT get_align(
    BSTR *p
);

Retrieves the alignment of the element.

p
Address of a string variable that receives one of these values:
center Align to the center.
left Align to the left edge.
right Align to the right edge.

See also put_align

IHTMLDivElement::put_noWrap

HRESULT put_noWrap(
    VARIANT_BOOL v
);

Enables or disables automatic word wrapping for the text in the division.

v
Boolean value that contains the word-wrap flag. If TRUE, the browser performs automatic word wrapping on the division contents. If FALSE, it doesn't. The default value for this property is FALSE.

See also get_noWrap

IHTMLDivElement::get_noWrap

HRESULT get_noWrap(
    VARIANT_BOOL *p
);

Determines whether automatic word wrapping is enabled or disabled for the element.

p
Address of a Boolean variable that receives TRUE if automatic word wrapping is enabled for the element, or FALSE otherwise. The default value for this property is FALSE.

See also put_noWrap

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.