CSSClientAddRuleAsync Method |
Version 112.3.0
Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
position specified by `location`.
Namespace:
CefSharp.DevTools.CSS
Assembly:
CefSharp.Core (in CefSharp.Core.dll) Version: 112.3.0.0
Syntax public Task<AddRuleResponse> AddRuleAsync(
string styleSheetId,
string ruleText,
SourceRange location
)
public:
Task<AddRuleResponse^>^ AddRuleAsync(
String^ styleSheetId,
String^ ruleText,
SourceRange^ location
)
Parameters
- styleSheetId
- Type: SystemString
The css style sheet identifier where a new rule should be inserted. - ruleText
- Type: SystemString
The text of a new rule. - location
- Type: CefSharp.DevTools.CSSSourceRange
Text position of a new rule in the target style sheet.
Return Value
Type:
TaskAddRuleResponsereturns System.Threading.Tasks.Task<AddRuleResponse>
See Also