ISourceChanger 接口

更新:2007 年 11 月

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

一个使用复制模型来修改源的接口。

命名空间:  Microsoft.Windows.Design.SourceUpdate
程序集:  Microsoft.Windows.Design.Markup(在 Microsoft.Windows.Design.Markup.dll 中)

语法

声明
Public Interface ISourceChanger
用法
Dim instance As ISourceChanger
public interface ISourceChanger
public interface class ISourceChanger
public interface ISourceChanger

备注

ISourceChanger 可被解释为将源从一个缓冲区复制到另一个缓冲区,并在复制过程中进行更改。所有的位置都以初始偏移量表示,忽略插入和跳过的文本。

偏移量就是出现在 ISourceReader 中的值。在调用 CopyToMoveTo 方法时,___location 参数必须增加。

一旦调用 Done 方法,对 ISourceChanger 的所有后续调用均无效。

另请参见

参考

ISourceChanger 成员

Microsoft.Windows.Design.SourceUpdate 命名空间

其他资源

WPF 设计器扩展性