IHTMLRuleStyle::put_pageBreakBefore
IHTMLRuleStyle

IHTMLRuleStyle::put_pageBreakBefore


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.

v
String specifying the value of the attribute. Can be one of these strings:
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 page-break-before for details.

See also get_pageBreakBefore

IHTMLRuleStyle::get_pageBreakBefore

HRESULT get_pageBreakBefore(
    BSTR *p 
);

Retrieves the value of the CSS page-break-before attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
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.
The variable receives NULL if the attribute is not set. See page-break-before for details.

See also put_pageBreakBefore

IHTMLRuleStyle::put_pageBreakAfter

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.

v
String specifying the value of the attribute. Can be one of these strings:
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 page-break-after for details.

See also get_pageBreakAfter

IHTMLRuleStyle::get_pageBreakAfter

HRESULT get_pageBreakAfter(
    BSTR *p 
);

Retrieves the value of the CSS page-break-after attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
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.
The variable receives NULL if the attribute is not set. See page-break-after for details.

See also put_pageBreakAfter

IHTMLRuleStyle::put_cssText

HRESULT put_cssText(
    BSTR v 
);

Sets the persisted representation of the style rule.

v
String specifying the style rule.

See also get_cssText

IHTMLRuleStyle::get_cssText

HRESULT get_cssText(
    BSTR *p 
);

Retrieves the persisted representation of the style rule.

p
Address of a variable that receives the style rule.

See also put_cssText

IHTMLRuleStyle::put_cursor

HRESULT put_cursor( 
    BSTR v 
);

Sets the value of the CSS cursor attribute for the element. The attribute determines the type of cursor to display when the mouse is over the element.

v
String specifying the cursor type. Can be one of these values:
auto Browser determines the cursor to display based on the current context.
crosshair A simple crosshair.
default The platform-dependent default cursor (typically an arrow).
hand A hand.
move A four-directional arrow typically used to indicate an object to be moved.
*-resize An arrow cursor typically used to indicate the edge of an object to be moved during a resize operation.
text Typically an I-bar used to indicate editable text.
wait Typically a watch or hourglass used to indicate that the program is busy and the user should wait.

See also get_cursor

IHTMLRuleStyle::get_cursor

HRESULT get_cursor(
    BSTR *p 
);

Retrieves the value of the CSS cursor attribute for the element.

p
Address of a variable that receives the value of the attribute. See cursor for details. This variable receives NULL if the attribute is not set.

See also put_cursor

IHTMLRuleStyle::put_clip

HRESULT put_clip( 
    BSTR v 
);

Sets the value of the CSS clip attribute for the element. The attribute determines which part of the element is visible. Any part of the element that is outside the clipping area is transparent.

v
String specifying the coordinates of the clipping area. Each coordinate can be a length value or "auto". Set this parameter to NULL to remove the attribute. See clip for details.

See also get_clip

IHTMLRuleStyle::get_clip

HRESULT get_clip(
    BSTR *p 
);

Retrieves the value of the CSS clip attribute for the element.

p
Address of a variable that receives the coordinates of the clipping area. This variable receives NULL if the attribute is not set. See clip for details.

See also put_clip

IHTMLRuleStyle::put_filter

HRESULT put_filter(
    BSTR v 
);

Sets a filter or collection of filters for the element.

v
String specifying the filter.

See also get_filter

IHTMLRuleStyle::get_filter

HRESULT get_filter(
    BSTR *p 
);

Retrieves a filter or collection of filters for the element.

p
Address of a variable that receives the filter.

See also put_filter

IHTMLRuleStyle::setAttribute

HRESULT setAttribute(
    BSTR strAttributeName,
    VARIANT AttributeValue,
    LONG lFlags 
);

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.

strAttributeName
String specifying the name of the attribute to set.
AttributeValue
String, number, or Boolean value to assign to the attribute.
lFlags
Long integer value that specifies the flags.

See also getAttribute

IHTMLRuleStyle::getAttribute

HRESULT getAttribute(
    BSTR strAttributeName,
    LONG lFlags,
    VARIANT *AttributeValue 
);

Retrieves the value of the given attribute.

strAttributeName
String specifying the name of the attribute to retrieve.
lFlags
Long integer that receives the flags.
AttributeValue
Address of a variable that receives a string, number, or Boolean value as defined by the attribute. If the attribute is not present, this method returns NULL.

If two or more attributes have the same name (differing only in uppercase and lowercase letters) and lFlags is FALSE, this method retrieves values only for the last attribute (the last to be created with this name). All other attributes of the same name are ignored.

See also setAttribute

IHTMLRuleStyle::removeAttribute

HRESULT removeAttribute( 
    BSTR strAttributeName, 
    LONG lFlags,
    VARIANT_BOOL *pfSuccess 
);

Removes the given attribute from the element.

strAttributeName
String specifying the name of the attribute to remove.
lFlags
Long integer that contains the flags.
pfSuccess
Address of a variable that receives TRUE if the function succeeds, or FALSE otherwise.

See also setAttribute, getAttribute

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