Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Macros Interface
Collapse the table of content
Expand the table of content

Macros Interface

Represents the Visual Studio macro recorder.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

[GuidAttribute("F9F99155-6D4D-49B1-AD63-C78C3E8A5916")]
public interface Macros

The Macros type exposes the following members.

  NameDescription
Public propertyDTEGets the top-level extensibility object.
Public propertyIsRecordingReturns whether the macro recorder is currently recording actions. This property should not be used from within a macro.
Public propertyParentGets the immediate parent object of a Macros object.
Top

  NameDescription
Public methodEmitMacroCodeWrites the line of code to the macro being recorded. This method should not be used from within a macro.
Public methodPausePauses 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.
Public methodResumeResumes macro recording if it has been paused. This method should not be used from within a macro.
Top

Macros are deprecated. For information about how to use automation in Visual Studio, see FAQ: Converting Add-ins to VSPackage Extensions.

Show:
© 2015 Microsoft