CoreTextServicesManager
CoreTextServicesManager
CoreTextServicesManager
CoreTextServicesManager
Class
Definition
The entry point to all services provided by the Windows core text APIs and the text input server. This object is associated with an application's UI thread (the thread that CoreWindow runs on).
public : sealed class CoreTextServicesManager : ICoreTextServicesManagerpublic sealed class CoreTextServicesManager : ICoreTextServicesManagerPublic NotInheritable Class CoreTextServicesManager Implements ICoreTextServicesManager// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
To obtain an object of this type, call CoreTextServicesManager.GetForCurrentView.
Properties
InputLanguage InputLanguage InputLanguage InputLanguage
Gets a Language object representing the current input language.
public : Language InputLanguage { get; }public Language InputLanguage { get; }Public ReadOnly Property InputLanguage As Language// You can use this property in JavaScript.
Methods
CreateEditContext() CreateEditContext() CreateEditContext() CreateEditContext()
Creates a context object used by a text input control to communicate with the text input server. Each text input control must create its own context object.
public : CoreTextEditContext CreateEditContext()public CoreTextEditContext CreateEditContext()Public Function CreateEditContext() As CoreTextEditContext// You can use this method in JavaScript.
A CoreTextEditContext instance, which is the primary object used for communicating with the text input server.
GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView()
Gets the CoreTextServicesManager object for the currently active view.
public : static CoreTextServicesManager GetForCurrentView()public static CoreTextServicesManager GetForCurrentView()Public Static Function GetForCurrentView() As CoreTextServicesManager// You can use this method in JavaScript.
A CoreTextServicesManager instance, which can be used to create further objects to support the app's text input scenarios.
Events
InputLanguageChanged InputLanguageChanged InputLanguageChanged InputLanguageChanged
Occurs when the current input language has changed.
public : event TypedEventHandler InputLanguageChanged<CoreTextServicesManager, object>public event TypedEventHandler InputLanguageChanged<CoreTextServicesManager, object>Public Event InputLanguageChanged<CoreTextServicesManager, object>// You can use this event in JavaScript.