Class DefaultPseudoElementSelectorFactory
- Namespace
- AngleSharp.Css
- Assembly
- AngleSharp.dll
Provides string to CSS pseudo element selector instance mappings.
public class DefaultPseudoElementSelectorFactory : IPseudoElementSelectorFactory
- Inheritance
-
DefaultPseudoElementSelectorFactory
- Implements
- Inherited Members
- Extension Methods
Constructors
DefaultPseudoElementSelectorFactory()
public DefaultPseudoElementSelectorFactory()
Methods
Create(string)
Creates or gets the associated CSS pseudo element selector.
public ISelector Create(string name)
Parameters
name
stringThe name of the CSS pseudo element.
Returns
- ISelector
The associated selector.
CreateDefault(string)
Creates the default CSS pseudo element selector for the given name.
protected virtual ISelector CreateDefault(string name)
Parameters
name
stringThe name of the CSS pseudo class.
Returns
- ISelector
The selector with the given name.
Register(string, ISelector)
Registers a new selector for the specified name. Throws an exception if another selector for the given name is already added.
public void Register(string name, ISelector selector)
Parameters
Unregister(string)
Unregisters an existing selector for the given name.
public ISelector? Unregister(string name)
Parameters
name
stringThe name of the CSS pseudo element.
Returns
- ISelector
The registered selector, if any.