Table of Contents

Class CSSPageDescriptors

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSPageDescriptors interface represents a CSS declaration block for an @page at-rule.

[Value("CSSPageDescriptors")]
public class CSSPageDescriptors : CSSStyleDeclaration
Inheritance
CSSPageDescriptors
Inherited Members

Remarks

The interface exposes style information and various style-related methods and properties for the page.
Each multi-word property has versions in camel- and snake-case.
This means, for example, that you can access the margin-top CSS property using the syntax style["margin-top"] or style.marginTop (where style is a CSSPageDescriptor).

A CSSPageDescriptors object is accessed through the Style property of the CSSPageRule interface, which can in turn be found using the CSSStyleSheet API.

See also on MDN

Constructors

CSSPageDescriptors()

public CSSPageDescriptors()

Properties

Bleed

[Value("bleed")]
public string Bleed { get; set; }

Property Value

string

Margin

[Value("margin")]
public string Margin { get; set; }

Property Value

string

MarginBottom

[Value("marginBottom")]
public string MarginBottom { get; set; }

Property Value

string

MarginLeft

[Value("marginLeft")]
public string MarginLeft { get; set; }

Property Value

string

MarginRight

[Value("marginRight")]
public string MarginRight { get; set; }

Property Value

string

MarginTop

[Value("marginTop")]
public string MarginTop { get; set; }

Property Value

string

Margin_bottom

[Value("margin-bottom")]
public string Margin_bottom { get; set; }

Property Value

string

Margin_left

[Value("margin-left")]
public string Margin_left { get; set; }

Property Value

string

Margin_right

[Value("margin-right")]
public string Margin_right { get; set; }

Property Value

string

Margin_top

[Value("margin-top")]
public string Margin_top { get; set; }

Property Value

string

Marks

[Value("marks")]
public string Marks { get; set; }

Property Value

string

PageOrientation

[Value("pageOrientation")]
public string PageOrientation { get; set; }

Property Value

string

Page_orientation

[Value("page-orientation")]
public string Page_orientation { get; set; }

Property Value

string

Size

[Value("size")]
public string Size { get; set; }

Property Value

string