IHTMLIFrameElement

IHTMLIFrameElement


This interface creates inline floating frames.

This element is a block element.

IHTMLIFrameElement Methods
put_vspace   get_vspace   put_hspace  
get_hspace   put_align   get_align  

IHTMLIFrameElement::put_vspace

HRESULT put_vspace(
    long v
);

Sets the vertical margins for the element.

v
Value specifying the width of the vertical margins.

Similar to border, except the margins are not painted with color when the element is a link.

See also get_vspace

IHTMLIFrameElement::get_vspace

HRESULT get_vspace(
    long *p
);

Retrieves the width of the vertical margins for the element.

p
Address of a variable that receives the width of the vertical margins.

Similar to border, except the margins are not painted with color when the element is a link.

See also put_vspace

IHTMLIFrameElement::put_hspace

HRESULT put_hspace(
    long v
);

Sets the horizontal margins for the element.

v
Value specifying the horizontal margins.

Similar to border, except the margins are not painted with color when the element is a link.

See also get_hspace

IHTMLIFrameElement::get_hspace

HRESULT get_hspace(
    long *p
);

Retrieves the horizontal margins for the element.

p
Address of a variable that receives the horizontal margins.

Similar to border, except the margins are not painted with color when the element is a link.

See also put_hspace

IHTMLIFrameElement::put_align

HRESULT put_align(
    BSTR v
);

Sets how the element is aligned with adjacent text.

v
String specifying the alignment. Can be one of these values:
absbottom Aligns the bottom of the element with the absolute bottom of the surrounding text. The absolute bottom is equal to the baseline of the text minus the height of the largest descender in the text.
absmiddle Aligns the middle of the element with the middle of the surrounding text. The absolute middle is the midpoint between the absolute bottom and texttop of the surrounding text.
baseline Aligns the bottom of the element with the baseline of the surrounding text.
bottom Aligns the bottom of the element with the bottom of the surrounding text. The bottom is equal to the baseline minus the standard height of a descender in the text.
left Aligns the element to the left of the surrounding text. All preceding and subsequent text flows to the right of the element. This is the default value.
middle Aligns the middle of the element with the surrounding text.
right Aligns the element to the right of the surrounding text. All subsequent text flows to the left of the element.
texttop Aligns the top of the element with the absolute top of the surrounding text. The absolute top is the baseline plus the height of the largest ascender in the text.
top Aligns the top of the element with the top of the text. The top of the text is the baseline plus the standard height of an ascender in the text.

For the INPUT element, this attribute applies only to the image type. It is undefined for all other types.

See also get_align

IHTMLIFrameElement::get_align

HRESULT get_align(
    BSTR *p
);

Retrieves how the element is aligned with adjacent text.

p
Address of a variable that receives the alignment. Can be one of these values:
absbottom Aligns the bottom of the element with the absolute bottom of the surrounding text. The absolute bottom is equal to the baseline of the text minus the height of the largest descender in the text.
absmiddle Aligns the middle of the element with the middle of the surrounding text. The absolute middle is the midpoint between the absolute bottom and texttop of the surrounding text.
baseline Aligns the bottom of the element with the baseline of the surrounding text.
bottom Aligns the bottom of the element with the bottom of the surrounding text. The bottom is equal to the baseline minus the standard height of a descender in the text.
left Aligns the element to the left of the surrounding text. All preceding and subsequent text flows to the right of the element. This is the default value.
middle Aligns the middle of the element with the surrounding text.
right Aligns the element to the right of the surrounding text. All subsequent text flows to the left of the element.
texttop Aligns the top of the element with the absolute top of the surrounding text. The absolute top is the baseline plus the height of the largest ascender in the text.
top Aligns the top of the element with the top of the text. The top of the text is the baseline plus the standard height of an ascender in the text.

For the INPUT element, this attribute applies only to the image type. It is undefined for all other types.

See also put_align

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