TextRangeManager.TextRemoved 方法

更新: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

    距离文档开头的偏移量。

返回值

类型:System.Collections.Generic.IEnumerable<TextRange>

TextRange 对象的列表,这些对象不再引用源文档中的字符,因为已删除它们引用的字符范围。

权限

另请参见

参考

TextRangeManager 类

TextRangeManager 成员

Microsoft.Windows.Design.SourceUpdate 命名空间

其他资源

WPF 设计器扩展性