共用方式為


IVsTextMacroHelper Interface

Generates macro recording code.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
<GuidAttribute("CAF8109F-B74B-429F-A11A-4944AADE9AB2")> _
<InterfaceTypeAttribute()> _
Public Interface IVsTextMacroHelper
[GuidAttribute("CAF8109F-B74B-429F-A11A-4944AADE9AB2")]
[InterfaceTypeAttribute()]
public interface IVsTextMacroHelper
[GuidAttribute(L"CAF8109F-B74B-429F-A11A-4944AADE9AB2")]
[InterfaceTypeAttribute()]
public interface class IVsTextMacroHelper
[<GuidAttribute("CAF8109F-B74B-429F-A11A-4944AADE9AB2")>]
[<InterfaceTypeAttribute()>]
type IVsTextMacroHelper =  interface end
public interface IVsTextMacroHelper

The IVsTextMacroHelper type exposes the following members.

Methods

  Name Description
Public method RecordActivateDocument Records that the document was activated.
Public method RecordBookmarkClearAll Records that all bookmarks were cleared.
Public method RecordBookmarkNextPrev Records move to next or previous bookmark.
Public method RecordBookmarkSetClear Records set or clear the current bookmark.
Public method RecordChangeCase Records change of case.
Public method RecordCollapseSelection Records collapse of the current selection.
Public method RecordCopy Records copy of the current selection to the clipboard.
Public method RecordCut Records cut of the current selection to the clipboard.
Public method RecordDelete Records delete action.
Public method RecordDeleteSpace Records delete of space.
Public method RecordEnterBoxMode Records entering box mode.
Public method RecordFormatSelection Records format selection.
Public method RecordGotoLine Records moving position to the specified line.
Public method RecordIndentUnindent Records indent or unindent action.
Public method RecordInsertFile Records insert file action.
Public method RecordMoveSelectionAbs Records absolute move of selection.
Public method RecordMoveSelectionRel Records relative move of selection.
Public method RecordNewLine Records new line action.
Public method RecordPaste Records paste from clipboard.
Public method RecordRemovePreviousTyping Records action to remove previous typing.
Public method RecordSelectAll Records action to select all.
Public method RecordSwapAnchor Records an anchor swap.
Public method RecordTabifyUntabify Records a tabify or unify action.
Public method RecordTypeChar Records typing a character.
Public method RecordTypeChars Records typing multiple characters.

Top

Remarks

An action performed in the editor should be captured by recording automation code that can later be replayed by the user to repeat the action.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace