Compartir a través de


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)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("7F57B996-148B-46DE-A261-B1A02E6D9DBA")> _
Public Interface IVsPreliminaryTextChangeCommitEvents _
    Inherits IVsFinalTextChangeCommitEvents
[InterfaceTypeAttribute()]
[GuidAttribute("7F57B996-148B-46DE-A261-B1A02E6D9DBA")]
public interface IVsPreliminaryTextChangeCommitEvents : IVsFinalTextChangeCommitEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"7F57B996-148B-46DE-A261-B1A02E6D9DBA")]
public interface class IVsPreliminaryTextChangeCommitEvents : IVsFinalTextChangeCommitEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("7F57B996-148B-46DE-A261-B1A02E6D9DBA")>]
type IVsPreliminaryTextChangeCommitEvents =  
    interface 
        interface IVsFinalTextChangeCommitEvents 
    end
public interface IVsPreliminaryTextChangeCommitEvents extends IVsFinalTextChangeCommitEvents

The IVsPreliminaryTextChangeCommitEvents type exposes the following members.

Methods

  Name Description
Public method OnChangesCommitted

Top

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.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace