AngleSharp by AngleSharp

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

 ICommandService

public interface ICommandService : IService
Represents a service to execute UI commands on a 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.