Edit

Share via


TextComposition Constructors

Definition

Initializes a new instance of the TextComposition class.

Overloads

TextComposition(InputManager, IInputElement, String)

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)

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.

TextComposition(InputManager, IInputElement, String)

Initializes a new instance of the TextComposition class, taking a specified InputManager, source element, and composition text as initial values for the new instance.

public:
 TextComposition(System::Windows::Input::InputManager ^ inputManager, System::Windows::IInputElement ^ source, System::String ^ resultText);
public TextComposition (System.Windows.Input.InputManager inputManager, System.Windows.IInputElement source, string resultText);
new System.Windows.Input.TextComposition : System.Windows.Input.InputManager * System.Windows.IInputElement * string -> System.Windows.Input.TextComposition
Public Sub New (inputManager As InputManager, source As IInputElement, resultText As String)

Parameters

inputManager
InputManager

An input manager to associate with this text composition.

source
IInputElement

A source element for this text composition. The object underlying the source element must implement the IInputElement interface.

resultText
String

A string containing the initial text for the composition. This parameter will become the value of the Text property in the new class instance.

Remarks

If this constructor is used to create a new instance of TextComposition, the new instance will have AutoComplete set to On.

Applies to

TextComposition(InputManager, IInputElement, String, 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.

public:
 TextComposition(System::Windows::Input::InputManager ^ inputManager, System::Windows::IInputElement ^ source, System::String ^ resultText, System::Windows::Input::TextCompositionAutoComplete autoComplete);
[System.Security.SecurityCritical]
public TextComposition (System.Windows.Input.InputManager inputManager, System.Windows.IInputElement source, string resultText, System.Windows.Input.TextCompositionAutoComplete autoComplete);
public TextComposition (System.Windows.Input.InputManager inputManager, System.Windows.IInputElement source, string resultText, System.Windows.Input.TextCompositionAutoComplete autoComplete);
[<System.Security.SecurityCritical>]
new System.Windows.Input.TextComposition : System.Windows.Input.InputManager * System.Windows.IInputElement * string * System.Windows.Input.TextCompositionAutoComplete -> System.Windows.Input.TextComposition
new System.Windows.Input.TextComposition : System.Windows.Input.InputManager * System.Windows.IInputElement * string * System.Windows.Input.TextCompositionAutoComplete -> System.Windows.Input.TextComposition
Public Sub New (inputManager As InputManager, source As IInputElement, resultText As String, autoComplete As TextCompositionAutoComplete)

Parameters

inputManager
InputManager

An input manager to associate with this text composition.

source
IInputElement

A source element for this text composition. The object underlying the source element must implement the IInputElement interface.

resultText
String

A string containing the initial text for the composition. This parameter will become the value of the Text property in the new class instance.

autoComplete
TextCompositionAutoComplete

A member of the TextCompositionAutoComplete enumerations specifying desired auto-complete behavior for this text composition.

Attributes

Applies to