Click or drag to resize

CSSClientAddRuleAsync Method

Version 109.1.110
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: 109.1.110.0 (109.1.110.0)
Syntax
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: TaskAddRuleResponse
returns System.Threading.Tasks.Task<AddRuleResponse>
See Also