Share via


ChangeCommitGestureFlags Enumeration

Flags indicating the type of changes made to text, which triggered the commit gesture.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration ChangeCommitGestureFlags
'Usage
Dim instance As ChangeCommitGestureFlags
[FlagsAttribute]
public enum ChangeCommitGestureFlags
[FlagsAttribute]
public enum class ChangeCommitGestureFlags
public enum ChangeCommitGestureFlags

Members

Member name Description
CCG_SAVE Occurs when a file is being saved. A language service can perform any final file fix-ups required and the changes will be persisted in the save.
CCG_MULTILINE_CHANGE Occurs when a single change covers multiple lines. An example would be a paste operation.
CCG_CARET_ON_NEW_BUFFER_LINE Occurs when the caret has moved to a new buffer line. For example, this occurs on a carriage return or when a user clicks on a different line to move the caret.
CCG_MASS_REPLACE Signals that the commit is being fired for multiple changes within the affected span. Examples would be a large replace operation or running a wizard that affects multiple places in the file.
CCG_ENTER_COMMAND Same as CCG_CARET_ON_NEW_BUFFER_LINE.
CCG_FIND_STARTING Fired before a find operation is started.
CCG_LOST_FOCUS Indicates that the editor window has lost focus.
CCG_DESTRUCTIVEACTION Used by the core editor. Editor clients should not use this value.
CCG_PROGRAMMATIC_CHANGE Signals that the commit is being fired while the editor is running an automation function. For example, if a macro is played back, the language service will know that actions are a result of macro playback or automation code by checking this value.

Remarks

Because these are flags, they can be combined. For example, a client could see CCG_PROGRAMMATIC_CHANGE and CCG_CARET_ON_NEW_BUFFER_LINE.

COM Signature

From textmgr.idl:

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace