Click or drag to resize

CSSClient.AddRuleAsync Method

Version 99.2.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: 99.2.120.0 (99.2.120.0)
Syntax
public Task<AddRuleResponse> AddRuleAsync(
	string styleSheetId,
	string ruleText,
	SourceRange location
)

Parameters

styleSheetId
Type: System.String
The css style sheet identifier where a new rule should be inserted.
ruleText
Type: System.String
The text of a new rule.
location
Type: CefSharp.DevTools.CSS.SourceRange
Text position of a new rule in the target style sheet.

Return Value

Type: Task<AddRuleResponse>
returns System.Threading.Tasks.Task<AddRuleResponse>
See Also