Class CSSAdapter
Represents an adapter for the CSS domain to simplify the command interface.
public class CSSAdapter
- Inheritance
-
CSSAdapter
- Inherited Members
Constructors
CSSAdapter(IDevToolsSession)
Initializes a new instance of the CSSAdapter class.
public CSSAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
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
AddRuleCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
CollectClassNamesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
CreateStyleSheetCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
ForcePseudoStateCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
GetBackgroundColorsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
GetComputedStyleForNodeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
GetInlineStylesForNodeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetLayersForNode(GetLayersForNodeCommandSettings, CancellationToken, int?, bool)
getLayersForNode
public Task<GetLayersForNodeCommandResponse> GetLayersForNode(GetLayersForNodeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetLayersForNodeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetLocationForSelector(GetLocationForSelectorCommandSettings, CancellationToken, int?, bool)
getLocationForSelector
public Task<GetLocationForSelectorCommandResponse> GetLocationForSelector(GetLocationForSelectorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetLocationForSelectorCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
GetMatchedStylesForNodeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
GetMediaQueriesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
GetPlatformFontsForNodeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
GetStyleSheetTextCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetContainerQueryText(SetContainerQueryTextCommandSettings, CancellationToken, int?, bool)
setContainerQueryText
public Task<SetContainerQueryTextCommandResponse> SetContainerQueryText(SetContainerQueryTextCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetContainerQueryTextCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
SetEffectivePropertyValueForNodeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
SetKeyframeKeyCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetLocalFontsEnabled(SetLocalFontsEnabledCommandSettings, CancellationToken, int?, bool)
setLocalFontsEnabled
public Task<SetLocalFontsEnabledCommandResponse> SetLocalFontsEnabled(SetLocalFontsEnabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetLocalFontsEnabledCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
SetMediaTextCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetPropertyRulePropertyName(SetPropertyRulePropertyNameCommandSettings, CancellationToken, int?, bool)
setPropertyRulePropertyName
public Task<SetPropertyRulePropertyNameCommandResponse> SetPropertyRulePropertyName(SetPropertyRulePropertyNameCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetPropertyRulePropertyNameCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
SetRuleSelectorCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetScopeText(SetScopeTextCommandSettings, CancellationToken, int?, bool)
setScopeText
public Task<SetScopeTextCommandResponse> SetScopeText(SetScopeTextCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetScopeTextCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
SetStyleSheetTextCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
SetStyleTextsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSupportsText(SetSupportsTextCommandSettings, CancellationToken, int?, bool)
setSupportsText
public Task<SetSupportsTextCommandResponse> SetSupportsText(SetSupportsTextCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSupportsTextCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
StartRuleUsageTrackingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
StopRuleUsageTrackingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TakeComputedStyleUpdates(TakeComputedStyleUpdatesCommandSettings, CancellationToken, int?, bool)
takeComputedStyleUpdates
public Task<TakeComputedStyleUpdatesCommandResponse> TakeComputedStyleUpdates(TakeComputedStyleUpdatesCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TakeComputedStyleUpdatesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
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
TakeCoverageDeltaCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TrackComputedStyleUpdates(TrackComputedStyleUpdatesCommandSettings, CancellationToken, int?, bool)
trackComputedStyleUpdates
public Task<TrackComputedStyleUpdatesCommandResponse> TrackComputedStyleUpdates(TrackComputedStyleUpdatesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TrackComputedStyleUpdatesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
FontsUpdated
fontsUpdated
public event EventHandler<FontsUpdatedEventArgs> FontsUpdated
Event Type
MediaQueryResultChanged
mediaQueryResultChanged
public event EventHandler<MediaQueryResultChangedEventArgs> MediaQueryResultChanged
Event Type
StyleSheetAdded
styleSheetAdded
public event EventHandler<StyleSheetAddedEventArgs> StyleSheetAdded
Event Type
StyleSheetChanged
styleSheetChanged
public event EventHandler<StyleSheetChangedEventArgs> StyleSheetChanged
Event Type
StyleSheetRemoved
styleSheetRemoved
public event EventHandler<StyleSheetRemovedEventArgs> StyleSheetRemoved