Table of Contents

Class CSSFontFaceRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSFontFaceRule interface represents an @font-face at-rule.

[Value("CSSFontFaceRule")]
public class CSSFontFaceRule : CSSRule
Inheritance
CSSFontFaceRule
Inherited Members

Remarks

Constructors

CSSFontFaceRule()

public CSSFontFaceRule()

Properties

Style

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

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

Property Value

CSSFontFaceDescriptors

A CSSStyleDeclaration object.Although the style property itself is read-only in the sense that you can't replace the CSSStyleDeclaration object, you can still assign to the style property directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify the CSSStyleDeclaration object using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.

Remarks