通知做操作的客户端触发文本缓冲区事件,并提供了更改的文本范围。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
<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
IVsPreliminaryTextChangeCommitEvents 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
OnChangesCommitted |
页首
备注
,它获取激发时,IVsPreliminaryTextChangeCommitEvents 类似于 IVsFinalTextChangeCommitEvents ,但。 IVsPreliminaryTextChangeCommitEvents 获取激发,在其他操作,因此,客户端可以在诸如 Visual Basic 整齐排列功能之前的其他操作之前操作文本缓冲区,发生。
对实现者的说明
实现在客户端对象的 IVsPreliminaryTextChangeCommitEvents 接收更改的通知到文本缓冲区对象 (VsTextBuffer)。 使用 IVsPreliminaryTextChangeCommitEvents 响应事件在其他操作之前。 例如,则为; 如果允许其他操作之前,发生 Visual Basic 整齐排列功能可以对该文本的意外的更改。 显示该接口在文本缓冲区使用文本缓冲区对象 (VsTextBuffer) 的 IConnectionPointContainer 接口。 有关更多信息,请参见 如何:文本缓冲区注册事件与传统 API。