Collapse the table of content
Expand the table of content

addPageRule method

Not implemented. Creates a new page object for a style sheet.


 retVal = object.addPageRule(bstrSelector, bstrStyle, lIndex);


bstrSelector [in]

Type: BSTR

BSTR that specifies the selector for the new page object.

bstrStyle [in]

Type: BSTR

BSTR that specifies the style assignments for this page object. This style takes the same form as an inline style specification. For example, "color:blue" is a valid style parameter.

lIndex [in]

Type: long

long that specifies the zero-based position in the pages collection where the new page object should be placed.


Default. The page object is added to the end of the collection.

Standards information

There are no standards that apply here.


Each page object represents a style sheet that corresponds to a @page rule in the document.



Community Additions

© 2015 Microsoft