TextChange(Int32, Int32, ITextBuffer, Int32, Int32, ITextBuffer) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此类型/成员支持.NET Framework基础结构,不应直接从代码使用。初始化 类的新实例TextChange。
public TextChange(int oldPosition, int oldLength, System.Web.Razor.Text.ITextBuffer oldBuffer, int newPosition, int newLength, System.Web.Razor.Text.ITextBuffer newBuffer);
new System.Web.Razor.Text.TextChange : int * int * System.Web.Razor.Text.ITextBuffer * int * int * System.Web.Razor.Text.ITextBuffer -> System.Web.Razor.Text.TextChange
Public Sub New (oldPosition As Integer, oldLength As Integer, oldBuffer As ITextBuffer, newPosition As Integer, newLength As Integer, newBuffer As ITextBuffer)
参数
- oldPosition
- Int32
在更改之前的那一刻文本更改在快照中的位置。
- oldLength
- Int32
旧文本的长度。
- oldBuffer
- ITextBuffer
旧文本缓冲区。
- newPosition
- Int32
在更改之后的那一刻文本更改在快照中的位置。
- newLength
- Int32
新文本的长度。
- newBuffer
- ITextBuffer
新文本缓冲区。