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.
Although theNOTE
Earlier versions of the specification defined this property as a CSSStyleDeclaration.
Check the compatibility data below for your browser.styleproperty itself is read-only in the sense that you can't replace theCSSPageDescriptorsobject, you can still assign to thestyleproperty directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify theCSSPageDescriptorsobject using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.