OnExecuteOperationInTextRange Method (OperationBase)

Top  Previous  Next

This method must be overridden in order to perform the operation in a text range if the operation can use the Procedure or Selected Text scopes, that is, if scope of the user options is set to AskUserIncludingProcedureAndSelectionScopes. In this case the OnExecuteOperationInProjectItem method that you must always override can call this method to perform the operation in a single place.

Signature

[VB.NET]

Sub OnExecuteOperationInTextRange(ByVal adminOptions As AdminOptionsBase, ByVal userOptions As UserOptions, ByVal projectItem As EnvDTE.ProjectItem, ByVal startEditPoint As EnvDTE.EditPoint, ByVal endEditPoint As EnvDTE.EditPoint, ByRef cancel As Boolean)

[C#]

void OnExecuteOperationInTextRange(AdminOptionsBase adminOptions, UserOptions userOptions, EnvDTE.ProjectItem projectItem, EnvDTE.EditPoint startEditPoint, EnvDTE.EditPoint endEditPoint, ref bool cancel)

Parameters

  • adminOptions: the admin options used by the operation, if any.
  • userOptions: the user options used by the operation.
  • projectItem: the project item that is being processed.
  • startEditPoint: the EnvDTE.EditPoint that delimitates the start of the paragraph where to perform the operation.
  • endEditPoint: the EnvDTE.EditPoint that delimitates the end of the paragraph where to perform the operation.
  • cancel: allows the method to cancel the operation if needed.