请单击以进行评分并提供反馈
MSDN
MSDN Library
.NET 开发
.NET Framework
 ResultOffset 属性

  开启低带宽视图
.NET Framework 类库
FrameworkTextComposition..::.ResultOffset 属性

更新:2007 年 11 月

获取发生 TextInput 事件时已完成文本的偏移。

命名空间:  System.Windows.Documents
程序集:  PresentationFramework(在 PresentationFramework.dll 中)

Visual Basic(声明)
Public ReadOnly Property ResultOffset As Integer
Visual Basic (用法)
Dim instance As FrameworkTextComposition
Dim value As Integer

value = instance.ResultOffset
C#
public int ResultOffset { get; }
Visual C++
public:
property int ResultOffset {
    int get ();
}
J#
/** @property */
public int get_ResultOffset()
JScript
public function get ResultOffset () : int
XAML
不能在 XAML 中设置此属性。

属性值

类型:System..::.Int32

发生 TextInput 事件时已完成文本的偏移。

当发生 TextInputStartTextInputUpdate 事件时,ResultLength 为 –1。

.NET Framework 3.5 版中引入了 ResultOffset。有关更多信息,请参见 .NET Framework 3.5 体系结构

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

.NET Framework

受以下版本支持:3.5 SP1、3.0 SP1
社区内容   什么是社区内容?
添加新内容 RSS  批注
Processing
© 2009 Microsoft Corporation 版权所有。 保留所有权利  |  商标  |  隐私权声明
Page view tracker