Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IVsPreliminaryTextChangeCommitEvents Interface
Collapse the table of content
Expand the table of content

IVsPreliminaryTextChangeCommitEvents Interface

Notifies clients of a commit gesture to trigger a text buffer event, and provides the range of text changed.

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

public interface IVsPreliminaryTextChangeCommitEvents : IVsFinalTextChangeCommitEvents

IVsPreliminaryTextChangeCommitEvents is similar to IVsFinalTextChangeCommitEvents except when it gets fired. IVsPreliminaryTextChangeCommitEvents gets fired before other events do, so that the client can manipulate the text buffer before other events like Visual Basic Pretty Listing, take place.

Notes to Implementers:

Implement IVsPreliminaryTextChangeCommitEvents on your client object to receive notification of changes to the text buffer object (VsTextBuffer). Use IVsPreliminaryTextChangeCommitEvents to respond to an event prior to other events. For example, Visual Basic Pretty Listing may make undesirable changes to the text if it is allowed to take place prior to other events. Expose this interface to the text buffer using the IConnectionPointContainer interface on the text buffer object (VsTextBuffer). For more information, see How to: Advise Text Buffer Events.

Community Additions

© 2015 Microsoft