Share via


TextEditSession.ReplaceText(CoreTextRange, String) Method

Definition

Important

The Windows.UI.Input.Preview.Text APIs are part of a Limited Access Feature (see LimitedAccessFeatures class). Use the LAF Access Token Request Form to request an unlock token.

Note

To use this API in a Windows app being published to the Windows Store, you must declare the Text Input Method custom capability (Microsoft.appCategory.textInputMethod_8wekyb3d8bbwe) and request approval during the app submission process. See Custom capabilities for more info.

The Text Input Method capability enables several advanced features related to text input, including events for input focus (determining when to enter and exit) and the ability to read and write text within the current input focus's edit control.

public:
 virtual CoreTextRange ReplaceText(CoreTextRange replaceRange, Platform::String ^ text) = ReplaceText;
CoreTextRange ReplaceText(CoreTextRange const& replaceRange, winrt::hstring const& text);
public CoreTextRange ReplaceText(CoreTextRange replaceRange, string text);
function replaceText(replaceRange, text)
Public Function ReplaceText (replaceRange As CoreTextRange, text As String) As CoreTextRange

Parameters

replaceRange
CoreTextRange
text
String

Platform::String

winrt::hstring

Returns

Applies to