Compartilhar via


IVsPreliminaryTextChangeCommitEvents Interface

Definition

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

public interface class IVsPreliminaryTextChangeCommitEvents : Microsoft::VisualStudio::TextManager::Interop::IVsFinalTextChangeCommitEvents
public interface class IVsPreliminaryTextChangeCommitEvents : Microsoft::VisualStudio::TextManager::Interop::IVsFinalTextChangeCommitEvents
__interface IVsPreliminaryTextChangeCommitEvents : Microsoft::VisualStudio::TextManager::Interop::IVsFinalTextChangeCommitEvents
[System.Runtime.InteropServices.Guid("7F57B996-148B-46DE-A261-B1A02E6D9DBA")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsPreliminaryTextChangeCommitEvents : Microsoft.VisualStudio.TextManager.Interop.IVsFinalTextChangeCommitEvents
[System.Runtime.InteropServices.Guid("7F57B996-148B-46DE-A261-B1A02E6D9DBA")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsPreliminaryTextChangeCommitEvents : Microsoft.VisualStudio.TextManager.Interop.IVsFinalTextChangeCommitEvents
[<System.Runtime.InteropServices.Guid("7F57B996-148B-46DE-A261-B1A02E6D9DBA")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsPreliminaryTextChangeCommitEvents = interface
    interface IVsFinalTextChangeCommitEvents
[<System.Runtime.InteropServices.Guid("7F57B996-148B-46DE-A261-B1A02E6D9DBA")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsPreliminaryTextChangeCommitEvents = interface
    interface IVsFinalTextChangeCommitEvents
Public Interface IVsPreliminaryTextChangeCommitEvents
Implements IVsFinalTextChangeCommitEvents
Attributes
Implements

Remarks

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: Register for Text Buffer Events with the Legacy API.

Methods

OnChangesCommitted(UInt32, TextSpan[])

Applies to