ChangeCommitGestureFlags Enumeration
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

ChangeCommitGestureFlags Enumeration

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

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[FlagsAttribute] 
public enum ChangeCommitGestureFlags
/** @attribute FlagsAttribute() */ 
public enum ChangeCommitGestureFlags
FlagsAttribute 
public enum ChangeCommitGestureFlags

 Member nameDescription
CCG_CARET_ON_NEW_BUFFER_LINEOccurs 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_DESTRUCTIVEACTIONUsed by the core editor. Editor clients should not use this value. 
CCG_ENTER_COMMANDSame as CCG_CARET_ON_NEW_BUFFER_LINE
CCG_FIND_STARTINGFired before a find operation is started. 
CCG_LOST_FOCUSIndicates that the editor window has lost focus. 
CCG_MASS_REPLACESignals 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_MULTILINE_CHANGEOccurs when a single change covers multiple lines. An example would be a paste operation. 
CCG_PROGRAMMATIC_CHANGESignals 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. 
CCG_SAVEOccurs 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. 

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:

Show:
© 2016 Microsoft