Export (0) Print
Expand All

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

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.

Show:
© 2014 Microsoft