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
styleproperty itself is read-only in the sense that you can't replace theCSSStyleDeclarationobject, you can still assign to thestyleproperty directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify theCSSStyleDeclarationobject using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.