Table of Contents

Class CSSPageRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

CSSPageRule represents a single CSS @page rule.

[Value("CSSPageRule")]
public class CSSPageRule : CSSGroupingRule
Inheritance
CSSPageRule
Inherited Members

Remarks

Constructors

CSSPageRule()

public CSSPageRule()

Properties

SelectorText

The selectorText property of the CSSPageRule interface gets and sets the selectors associated with the CSSPageRule.

[Value("selectorText")]
public string SelectorText { get; set; }

Property Value

string

A string.

Remarks

Style

The read-only style property of the CSSPageRule interface contains a CSSPageDescriptors object representing the descriptors available in the {{cssxref("@page")}} rule's body.

[Value("style")]
public CSSPageDescriptors Style { get; }

Property Value

CSSPageDescriptors

A CSSPageDescriptors object.

NOTE
Earlier versions of the specification defined this property as a CSSStyleDeclaration.
Check the compatibility data below for your browser.
Although the style property itself is read-only in the sense that you can't replace the CSSPageDescriptors object, you can still assign to the style property directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify the CSSPageDescriptors object using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.

Remarks