Macros Interface
Represents the Visual Studio macro recorder.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
<GuidAttribute("F9F99155-6D4D-49B1-AD63-C78C3E8A5916")> _
Public Interface Macros
[GuidAttribute("F9F99155-6D4D-49B1-AD63-C78C3E8A5916")]
public interface Macros
[GuidAttribute(L"F9F99155-6D4D-49B1-AD63-C78C3E8A5916")]
public interface class Macros
[<GuidAttribute("F9F99155-6D4D-49B1-AD63-C78C3E8A5916")>]
type Macros = interface end
public interface Macros
The Macros type exposes the following members.
Properties
Name | Description | |
---|---|---|
DTE | Gets the top-level extensibility object. | |
IsRecording | Returns whether the macro recorder is currently recording actions. This property should not be used from within a macro. | |
Parent | Gets the immediate parent object of a Macros object. |
Top
Methods
Name | Description | |
---|---|---|
EmitMacroCode | Writes the line of code to the macro being recorded. This method should not be used from within a macro. | |
Pause | Pauses the macro recorder so that no code is written to the macro currently being recorded. This method should not be used from within a macro. | |
Resume | Resumes macro recording if it has been paused. This method should not be used from within a macro. |
Top
Remarks
The Macros object allows add-ins to programmatically control the macro recorder and manipulate macro recording. It can detect if macros are recording; emit (that is, insert) lines of code in the macro; pause recording, and resume recording.