AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.11" />

 ICommand

public interface ICommand
Represents a command that can be executed from the document.
string CommandId { get; }

The id of the command.

bool Execute(IDocument document, bool showUserInterface, string value)

Executes the command for the given document.

string GetValue(IDocument document)

Gets the value that would be changed at the moment.

bool IsEnabled(IDocument document)

Checks if the command is currently enabled.

bool IsExecuted(IDocument document)

Checks if the command has been run already.

bool IsIndeterminate(IDocument document)

Checks if the command is currently neither enabled nor disabled.

bool IsSupported(IDocument document)

Checks if the command is currently supported at all.