Partager via


IEditorCommandHandlerService Interface

Definition

A service to execute commands on a text view.

public interface class IEditorCommandHandlerService
public interface IEditorCommandHandlerService
type IEditorCommandHandlerService = interface
Public Interface IEditorCommandHandlerService

Remarks

Instances of this service are created by IEditorCommandHandlerServiceFactory.

Methods

Execute<T>(Func<ITextView,ITextBuffer,T>, Action)

Execute a given command on the ITextView associated with this IEditorCommandHandlerService instance.

GetCommandState<T>(Func<ITextView,ITextBuffer,T>, Func<CommandState>)

Get the CommandState for command handlers of a given command.

Applies to