CssKeyframesRule Class
https://drafts.csswg.org/css-animations/#interface-csskeyframesrule
public sealed class CssKeyframesRule : CssRule- Inheritance
CssRuleCssKeyframesRule
Properties
| Name | Description |
|---|---|
| CssRules | Gets the list of the keyframe rules. |
| Length | Gets the number of keyframe rules. |
| Name | Gets or sets the name of the animation. |
| Type | Gets the legacy numeric type of the rule: CssRule.KeyframesRule for @keyframes rules. |
CssRules
CSSRules.csLength
CSSRules.csGets the number of keyframe rules.
public uint Length { get; }Name
CSSRules.csGets or sets the name of the animation.
public string Name { get; set; }Type
CSSRules.csGets the legacy numeric type of the rule: CssRule.KeyframesRule for @keyframes rules.
public override ushort Type { get; }Property value
Indexers
| Name | Description |
|---|---|
| this[uint] | Gets the keyframe rule at the given index, or null when the index is out of range. |
this[uint]
CSSRules.csGets the keyframe rule at the given index, or null when the index is out of range.
public CssKeyframeRule? this[uint index] { get; }Methods
| Name | Description |
|---|---|
| AppendRule(string) | Parses a keyframe rule and appends it to the keyframes. |
| DeleteRule(string) | Removes the last keyframe rule whose key text matches the given selector. |
| FindRule(string) | Returns the last keyframe rule whose key text matches the given selector, or null when there is none. |
AppendRule(string)
CSSRules.csParses a keyframe rule and appends it to the keyframes.
DeleteRule(string)
CSSRules.csRemoves the last keyframe rule whose key text matches the given selector.
FindRule(string)
CSSRules.csReturns the last keyframe rule whose key text matches the given selector, or null when there is none.
public CssKeyframeRule? FindRule(string select)