更新:2007 年 11 月
命名空间:
System.Windows.Documents 程序集:
PresentationFramework(在 PresentationFramework.dll 中)
Public Class FrameworkTextComposition _
Inherits TextComposition
Dim instance As FrameworkTextComposition
public class FrameworkTextComposition : TextComposition
public ref class FrameworkTextComposition : public TextComposition
public class FrameworkTextComposition extends TextComposition
public class FrameworkTextComposition extends TextComposition
当用户通过使用输入法编辑器 (IME) 向 TextBox 中输入文本时,以及发生 TextInput、TextInputUpdate 或 TextInputStart 事件时,TextCompositionEventArgs..::.TextComposition 属性为 FrameworkTextComposition。
FrameworkTextComposition 是 FrameworkRichTextComposition 的基类。FrameworkRichTextComposition 类定义的属性可返回 TextPointer 对象以指示文本撰写的位置。 当用户在 RichTextBox 中输入文本时,TextCompositionEventArgs..::.TextComposition 为 FrameworkRichTextComposition。
System..::.Object
System.Windows.Threading..::.DispatcherObject
System.Windows.Input..::.TextComposition
System.Windows.Documents..::.FrameworkTextComposition
System.Windows.Documents..::.FrameworkRichTextComposition
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
.NET Framework
受以下版本支持:3.5、3.0
参考