TextComposition 类

定义

表示与文本输入相关的撰写,其中包含撰写文本本身、任何相关控件或系统文本以及撰写的完成状态。Represents a composition related to text input which includes the composition text itself, any related control or system text, and a state of completion for the composition.

public ref class TextComposition : System::Windows::Threading::DispatcherObject
public class TextComposition : System.Windows.Threading.DispatcherObject
type TextComposition = class
    inherit DispatcherObject
Public Class TextComposition
Inherits DispatcherObject
继承
TextComposition
派生

构造函数

TextComposition(InputManager, IInputElement, String)

初始化 TextComposition 类的新实例,将指定的 InputManager、源元素和撰写文本作为新实例的初始值。Initializes a new instance of the TextComposition class, taking a specified InputManager, source element, and composition text as initial values for the new instance.

TextComposition(InputManager, IInputElement, String, TextCompositionAutoComplete)

初始化 TextComposition 类的新实例,将指定的 InputManager、源元素、撰写文本和 TextCompositionAutoComplete 设置作为新实例的初始值。Initializes a new instance of the TextComposition class, taking a specified InputManager, source element, composition text, and a TextCompositionAutoComplete setting as initial values for the new instance.

属性

AutoComplete

获取此文本撰写的自动完成设置。Gets the auto-complete setting for this text composition.

CompositionText

获取或设置此文本撰写的撰写文本。Gets or sets the composition text for this text composition.

ControlText

获取或设置任何与此文本撰写关联的控件文本。Gets or sets any control text associated with this text composition.

Dispatcher

获取与此 Dispatcher 关联的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(继承自 DispatcherObject)
SystemCompositionText

获取或设置此文本撰写的系统撰写文本。Gets or sets the system composition text for this text composition.

SystemText

获取或设置此文本撰写的系统文本。Gets or sets the system text for this text composition.

Text

获取或设置此文本撰写的当前文本。Gets or sets the current text for this text composition.

方法

CheckAccess()

确定调用线程是否可以访问此 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(继承自 DispatcherObject)
Complete()

完成此文本撰写。Completes this text composition.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
VerifyAccess()

强制调用线程具有此 DispatcherObject 的访问权限。Enforces that the calling thread has access to this DispatcherObject.

(继承自 DispatcherObject)

适用于

另请参阅