更新:2007 年 11 月
此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
反映已在指定位置删除指定数量的字符。
命名空间: Microsoft.Windows.Design.SourceUpdate
程序集: Microsoft.Windows.Design.Markup(在 Microsoft.Windows.Design.Markup.dll 中)
语法
声明
Public Function TextRemoved ( _
___location As Long, _
length As Long _
) As IEnumerable(Of TextRange)
用法
Dim instance As TextRangeManager
Dim ___location As Long
Dim length As Long
Dim returnValue As IEnumerable(Of TextRange)
returnValue = instance.TextRemoved(___location, _
length)
public IEnumerable<TextRange> TextRemoved(
long ___location,
long length
)
public:
IEnumerable<TextRange^>^ TextRemoved(
long long ___location,
long long length
)
public function TextRemoved(
___location : long,
length : long
) : IEnumerable<TextRange>
参数
___location
类型:System.Int64距离文档开头的偏移量。
length
类型:System.Int64字符数。
返回值
类型:System.Collections.Generic.IEnumerable<TextRange>
TextRange 对象的列表,这些对象不再引用源文档中的字符,因为已删除它们引用的字符范围。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
另请参见
参考
Microsoft.Windows.Design.SourceUpdate 命名空间