Class AddRuleCommandSettings
Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the
position specified by location.
public sealed class AddRuleCommandSettings : ICommand
- Inheritance
-
AddRuleCommandSettings
- Implements
- Inherited Members
Properties
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
Location
Text position of a new rule in the target style sheet.
[JsonPropertyName("location")]
public SourceRange Location { get; set; }
Property Value
NodeForPropertySyntaxValidation
NodeId for the DOM node in whose context custom property declarations for registered properties should be validated. If omitted, declarations in the new rule text can only be validated statically, which may produce incorrect results if the declaration contains a var() for example.
[JsonPropertyName("nodeForPropertySyntaxValidation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? NodeForPropertySyntaxValidation { get; set; }
Property Value
- long?
RuleText
The text of a new rule.
[JsonPropertyName("ruleText")]
public string RuleText { get; set; }
Property Value
StyleSheetId
The css style sheet identifier where a new rule should be inserted.
[JsonPropertyName("styleSheetId")]
public string StyleSheetId { get; set; }