ChangeCommitGestureFlags Enumeration

Flags indicating the type of changes made to text that 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

声明
<FlagsAttribute> _
Public Enumeration ChangeCommitGestureFlags
[FlagsAttribute]
public enum ChangeCommitGestureFlags
[FlagsAttribute]
public enum class ChangeCommitGestureFlags
[<FlagsAttribute>]
type 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, for example, 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 Occurs when the commit is being fired for multiple changes within the affected span. For example, committing 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.

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.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace