Class CSSAdapter
Represents an adapter for the CSS domain to simplify the command interface.
- Inheritance
-
CSSAdapter
- Inherited Members
Constructors
CSSAdapter(IDevToolsSession)
Initializes a new instance of the CSSAdapter class.
Parameters
session
IDevTools Session The IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
Property Value
Methods
AddRule(AddRuleCommandSettings, CancellationToken, int?, bool)
addRule
public Task<AddRuleCommandResponse> AddRule(AddRuleCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
AddRule Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
CollectClassNames(CollectClassNamesCommandSettings, CancellationToken, int?, bool)
collectClassNames
public Task<CollectClassNamesCommandResponse> CollectClassNames(CollectClassNamesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
CollectClass Names Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
CreateStyleSheet(CreateStyleSheetCommandSettings, CancellationToken, int?, bool)
createStyleSheet
public Task<CreateStyleSheetCommandResponse> CreateStyleSheet(CreateStyleSheetCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
CreateStyle Sheet Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Disable(DisableCommandSettings, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommand Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommand Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ForcePseudoState(ForcePseudoStateCommandSettings, CancellationToken, int?, bool)
forcePseudoState
public Task<ForcePseudoStateCommandResponse> ForcePseudoState(ForcePseudoStateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ForcePseudo State Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetBackgroundColors(GetBackgroundColorsCommandSettings, CancellationToken, int?, bool)
getBackgroundColors
public Task<GetBackgroundColorsCommandResponse> GetBackgroundColors(GetBackgroundColorsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetBackground Colors Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetComputedStyleForNode(GetComputedStyleForNodeCommandSettings, CancellationToken, int?, bool)
getComputedStyleForNode
public Task<GetComputedStyleForNodeCommandResponse> GetComputedStyleForNode(GetComputedStyleForNodeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetComputed Style For Node Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetInlineStylesForNode(GetInlineStylesForNodeCommandSettings, CancellationToken, int?, bool)
getInlineStylesForNode
public Task<GetInlineStylesForNodeCommandResponse> GetInlineStylesForNode(GetInlineStylesForNodeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetInline Styles For Node Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetMatchedStylesForNode(GetMatchedStylesForNodeCommandSettings, CancellationToken, int?, bool)
getMatchedStylesForNode
public Task<GetMatchedStylesForNodeCommandResponse> GetMatchedStylesForNode(GetMatchedStylesForNodeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetMatched Styles For Node Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetMediaQueries(GetMediaQueriesCommandSettings, CancellationToken, int?, bool)
getMediaQueries
public Task<GetMediaQueriesCommandResponse> GetMediaQueries(GetMediaQueriesCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetMedia Queries Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetPlatformFontsForNode(GetPlatformFontsForNodeCommandSettings, CancellationToken, int?, bool)
getPlatformFontsForNode
public Task<GetPlatformFontsForNodeCommandResponse> GetPlatformFontsForNode(GetPlatformFontsForNodeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetPlatform Fonts For Node Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetStyleSheetText(GetStyleSheetTextCommandSettings, CancellationToken, int?, bool)
getStyleSheetText
public Task<GetStyleSheetTextCommandResponse> GetStyleSheetText(GetStyleSheetTextCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetStyle Sheet Text Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetEffectivePropertyValueForNode(SetEffectivePropertyValueForNodeCommandSettings, CancellationToken, int?, bool)
setEffectivePropertyValueForNode
public Task<SetEffectivePropertyValueForNodeCommandResponse> SetEffectivePropertyValueForNode(SetEffectivePropertyValueForNodeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetEffective Property Value For Node Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetKeyframeKey(SetKeyframeKeyCommandSettings, CancellationToken, int?, bool)
setKeyframeKey
public Task<SetKeyframeKeyCommandResponse> SetKeyframeKey(SetKeyframeKeyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetKeyframe Key Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetMediaText(SetMediaTextCommandSettings, CancellationToken, int?, bool)
setMediaText
public Task<SetMediaTextCommandResponse> SetMediaText(SetMediaTextCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetMedia Text Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetRuleSelector(SetRuleSelectorCommandSettings, CancellationToken, int?, bool)
setRuleSelector
public Task<SetRuleSelectorCommandResponse> SetRuleSelector(SetRuleSelectorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetRule Selector Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetStyleSheetText(SetStyleSheetTextCommandSettings, CancellationToken, int?, bool)
setStyleSheetText
public Task<SetStyleSheetTextCommandResponse> SetStyleSheetText(SetStyleSheetTextCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetStyle Sheet Text Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetStyleTexts(SetStyleTextsCommandSettings, CancellationToken, int?, bool)
setStyleTexts
public Task<SetStyleTextsCommandResponse> SetStyleTexts(SetStyleTextsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetStyle Texts Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StartRuleUsageTracking(StartRuleUsageTrackingCommandSettings, CancellationToken, int?, bool)
startRuleUsageTracking
public Task<StartRuleUsageTrackingCommandResponse> StartRuleUsageTracking(StartRuleUsageTrackingCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StartRule Usage Tracking Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
StopRuleUsageTracking(StopRuleUsageTrackingCommandSettings, CancellationToken, int?, bool)
stopRuleUsageTracking
public Task<StopRuleUsageTrackingCommandResponse> StopRuleUsageTracking(StopRuleUsageTrackingCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
StopRule Usage Tracking Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TakeCoverageDelta(TakeCoverageDeltaCommandSettings, CancellationToken, int?, bool)
takeCoverageDelta
public Task<TakeCoverageDeltaCommandResponse> TakeCoverageDelta(TakeCoverageDeltaCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TakeCoverage Delta Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
FontsUpdated
fontsUpdated
Event Type
MediaQueryResultChanged
mediaQueryResultChanged
Event Type
StyleSheetAdded
styleSheetAdded
Event Type
StyleSheetChanged
styleSheetChanged
Event Type
StyleSheetRemoved
styleSheetRemoved