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)

適用於

另請參閱