AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.10" />

.NET API 1,230,336 bytes

 CssFontFaceRule

Represents the @font-face rule.
using AngleSharp.Css; using AngleSharp.Parser.Css; using System.Collections; using System.Collections.Generic; namespace AngleSharp.Dom.Css { internal sealed class CssFontFaceRule : CssDeclarationRule, ICssFontFaceRule, ICssRule, ICssNode, IStyleFormattable, ICssProperties, IEnumerable<ICssProperty>, IEnumerable { string ICssFontFaceRule.Family { get { return GetValue(PropertyNames.FontFamily); } set { SetValue(PropertyNames.FontFamily, value); } } string ICssFontFaceRule.Source { get { return GetValue(PropertyNames.Src); } set { SetValue(PropertyNames.Src, value); } } string ICssFontFaceRule.Style { get { return GetValue(PropertyNames.FontStyle); } set { SetValue(PropertyNames.FontStyle, value); } } string ICssFontFaceRule.Weight { get { return GetValue(PropertyNames.FontWeight); } set { SetValue(PropertyNames.FontWeight, value); } } string ICssFontFaceRule.Stretch { get { return GetValue(PropertyNames.FontStretch); } set { SetValue(PropertyNames.FontStretch, value); } } string ICssFontFaceRule.Range { get { return GetValue(PropertyNames.UnicodeRange); } set { SetValue(PropertyNames.UnicodeRange, value); } } string ICssFontFaceRule.Variant { get { return GetValue(PropertyNames.FontVariant); } set { SetValue(PropertyNames.FontVariant, value); } } string ICssFontFaceRule.Features { get { return string.Empty; } set { } } internal CssFontFaceRule(CssParser parser) : base(CssRuleType.FontFace, RuleNames.FontFace, parser) { } protected override CssProperty CreateNewProperty(string name) { return Factory.Properties.CreateFont(name); } } }