Skip to main content
A newer version of this page is available. .

Focus

This article describes all Context Providers in the Focus group. Refer to the Context Providers article for details on how to access Context Providers from the other groups.


[CodeEditorHasFocus]

Satisfied when the source code editor has focus.

Supported Languages: All


[FormDesignerHasFocus]

Satisfied when the form designer has focus.

Supported Languages: All


[ToolWindowHasFocus(type)]

Position Parameter Description
1 Type The window type of the tool window to test for.

Satisfied when the specified tool window has focus.

The parameter Type accepts one of the following strings.

  • Unknown
  • Autos
  • Browser
  • CallStack
  • CodeWindow
  • ColorPalette
  • Designer
  • Document
  • DocumentOutline
  • Find
  • FindReplace
  • Immediate
  • LinkedWindowFrame
  • Locals
  • MainWindow
  • Output
  • Preview
  • Properties
  • RunningDocuments
  • SolutionExplorer
  • TaskList
  • Threads
  • Toolbox
  • ToolWindow
  • Watch
  • ModalDialog

Supported Languages: All