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 style read-only property of the CSSPageRule interface returns a CSSPageDescriptors object.
This represents a CSS declaration block for a CSS @page at-rule, and exposes style information and various style-related methods and properties for the page.

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

Property Value

CSSPageDescriptors

A CSSPageDescriptors object with properties that match the associated {{cssxref("@page")}} at-rule.

NOTE
Earlier versions of the specification defined this property as a CSSStyleDeclaration.
Check the compatibility data below for your browser.

Remarks