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, string resultText);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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.

[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);

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

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9