
HRESULT put_paddingLeft(
VARIANT v
);
Sets the value of the CSS padding-left attribute for the element. The attribute determines the amount of space between the border and the left of the element's content.
See also get_paddingLeft
HRESULT put_paddingRight(
VARIANT v
);
Sets the value of the CSS padding-right attribute for the element. The attribute determines the amount of space between the border and the right of the element's content.
See also get_paddingRight
HRESULT put_paddingTop(
VARIANT v
);
Sets the value of the CSS padding-top attribute for the element. The attribute determines the amount of space between the border and the top of the element's content.
See also get_paddingTop
HRESULT put_pageBreakAfter(
BSTR v
);
Sets the value of the CSS page-break-after attribute for the element. The attribute determines whether a page break occurs after the element and on what page the subsequent content should resume.
| auto | Insert a page break after the element only if necessary. |
| always | Always insert a page break after the element. |
| left | Insert one or two page breaks after the element until a blank left page is reached. |
| right | Insert one or two page breaks after the element until a blank right page is reached. |
See also get_pageBreakAfter
HRESULT put_pageBreakBefore(
BSTR v
);
Sets the value of the CSS page-break-before attribute for the element. The attribute determines whether a page break occurs before the element, and on what page the subsequent content should resume.
| auto | Insert a page break before the element only if necessary. |
| always | Always insert a page break before the element. |
| left | Insert one or two page breaks before the element until a blank left page is reached. |
| right | Insert one or two page breaks before the element until a blank right page is reached. |
See also get_pageBreakBefore
HRESULT put_pixelHeight(
long v
);
Sets the height of the element, in pixels.
Unlike the height attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also get_pixelHeight
HRESULT put_pixelLeft(
long v
);
Sets the left position of the element, in pixels.
Unlike the left attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also get_pixelLeft
HRESULT put_pixelTop(
long v
);
Sets the top position of the element, in pixels.
Unlike the top attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also get_pixelTop
HRESULT put_pixelWidth(
long v
);
Sets the width of the element, in pixels.
Unlike the width attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also get_pixelWidth
HRESULT put_posHeight(
float v
);
Sets the height of the element.
Setting this property changes the value of the height but leaves the units designator for the property unchanged.
Unlike the height property, this property's value is a floating-point number, not a string.
See also get_posHeight
HRESULT put_posLeft(
float v
);
Sets the left position of the element.
Setting this property changes the value of the left position but leaves the units designator for the property unchanged.
Unlike the left property, this property's value is a floating-point number, not a string.
See also get_posLeft
HRESULT put_posTop(
float v
);
Sets the top position of the element.
Setting this property changes the value of the top position but leaves the units designator for the property unchanged.
Unlike the top property, this property's value is a floating-point number, not a string.
See also get_posTop
HRESULT put_posWidth(
float v
);
Sets the width of the element.
Setting this property changes the value of the width but leaves the units designator for the property unchanged.
Unlike the width property, this property's value is a floating-point number, not a string.
See also get_posWidth
HRESULT put_styleFloat(
BSTR v
);
Sets the value of the CSS float attribute for the element. The attribute determines whether the element floats, causing text to flow around it.
| left |
| right |
| none |
See also get_styleFloat
HRESULT put_textAlign(
BSTR v
);
Sets the value of the CSS text-align attribute for the element. The attribute determines the alignment of the element's text.
| left |
| right |
| center |
| justify |
See also get_textAlign
HRESULT put_textDecoration(
BSTR v
);
Sets the value of the CSS text-decoration attribute for the element.
| underline |
| overline |
| line-through |
See also get_textDecoration
HRESULT put_textDecorationBlink(
VARIANT_BOOL v
);
Sets the value of the element's CSS text-decoration attribute to "blink", or removes the "blink" value from the attribute.
See also get_textDecorationBlink
HRESULT put_textDecorationLineThrough(
VARIANT_BOOL v
);
Sets the value of the element's CSS text-decoration attribute to "line-through", or removes the "line-through" value from the attribute.
See also get_textDecorationLineThrough
HRESULT put_textDecorationNone(
VARIANT_BOOL v
);
Sets the value of the element's CSS text-decoration attribute to "none", or removes the "none" value from the attribute.
See also get_textDecorationNone
HRESULT put_textDecorationOverline(
VARIANT_BOOL v
);
Sets the value of the element's CSS text-decoration attribute to "overline", or removes the "overline" value from the attribute.
See also get_textDecorationOverline
HRESULT put_textDecorationUnderline(
VARIANT_BOOL v
);
Sets the value of the element's CSS text-decoration attribute to "underline", or removes the "underline" value from the attribute.
See also get_textDecorationUnderline
HRESULT put_textIndent(
VARIANT v
);
Sets the value of the CSS text-indent attribute for the element. The attribute determines the amount of indention before the element's first line of formatted text.
See also get_textIndent
HRESULT put_textTransform(
BSTR v
);
Sets the value of the CSS text-transform attribute for the element.
| capitalize | First letter in the text is capitalized. |
| lowercase | All letters in the text are converted to lowercase. |
| uppercase | All letters in the text are converted to uppercase. |
See also get_textTransform
HRESULT put_top(
VARIANT v
);
Sets the value of the CSS top attribute for the element. The attribute determines the top position of the element.
See also get_top
HRESULT put_verticalAlign(
VARIANT v
);
Sets the value of the CSS vertical-align attribute for the element. The attribute determines the vertical positioning of the element.
| baseline |
| middle |
| sub |
| super |
| text-top |
| text-bottom |
| top |
| bottom |
See also get_verticalAlign
HRESULT put_visibility(
BSTR v
);
Sets the value of the CSS visibility attribute for the element. The attribute determines whether the content of the element is visible.
| visible |
| hidden |
| inherit |
Space is reserved for the element's content regardless of the value of the visibility attribute.
See also get_visibility
HRESULT put_whiteSpace(
BSTR v
);
Sets the CSS white-space attribute for the element. The attribute determines whether and how white-space characters in the element are displayed.
| normal | Consecutive white-space characters are replaced with a single space. |
| nowrap | Linebreak characters are preserved, but consecutive spaces and tab characters are replaced with a single space. |
| pre | All white-space characters (including line breaks) are preserved. |
See also get_whiteSpace
HRESULT put_width( VARIANT v );
Sets the value of the CSS width attribute for the element. The attribute determines the element's width.
See also get_width
HRESULT put_wordSpacing(
VARIANT v
);
Sets the value of the CSS word-spacing attribute for the element. The attribute determines the amount of space to add to the default space between words in the element's text.
See also get_wordSpacing
HRESULT put_zIndex(
VARIANT v
);
Sets the value of the CSS z-index attribute for the element. The attribute determines whether the element is positioned above or below the text.
See also get_zIndex
HRESULT removeAttribute(
BSTR strAttributeName,
VARIANT_BOOL fCaseSensitive,
VARIANT_BOOL *pfSuccess
);
Removes the given attribute from the element.
If two or more attributes have the same name (differing only in uppercase and lowercase letters) and fCaseSensitive is false, this method removes only the last attribute (the last to be created with this name). All other attributes of the same name are ignored.
See also getAttribute, setAttribute
HRESULT setAttribute(
BSTR strAttributeName,
VARIANT AttributeValue,
VARIANT_BOOL fCaseSensitive
);
Sets the value of the given attribute. If the attribute is not already present, the method adds the attribute to the element and sets the value.
Be careful when spelling attribute names. If fCaseSensitive is TRUE and strAttributeName does not have the same uppercase and lowercase letters as the attribute, this method creates a new attribute.
If two or more attributes have the same name (differing only in uppercase and lowercase letters) and fCaseSensitive is FALSE, this method assigns values only to the first attribute (the first to be created with this name). All other attributes of the same name are ignored.
See also getAttribute
HRESULT toString( BSTR *String );
Retrieves a string representation of the style object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.