CSSClientAddRuleAsync Method |
Version 103.0.120
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 (in CefSharp.dll) Version: 103.0.120.0 (103.0.120.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