TextComposition Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TextComposition class.
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. |
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
.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 |
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
.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 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: