Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ITextDocument.SetText(TextSetOptions, String) Method

Definition

Namespace:
Windows.UI.Text

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.

Sets the text of the document.

public:
 void SetText(TextSetOptions options, Platform::String ^ value);
void SetText(TextSetOptions const& options, winrt::hstring const& value);
public void SetText(TextSetOptions options, string value);
function setText(options, value)
Public Sub SetText (options As TextSetOptions, value As String)

Parameters

options
TextSetOptions

Options controlling how the text is inserted into the document.

value
String

Platform::String

winrt::hstring

The new text.

Remarks

If the string is NULL, the text in the document is deleted.

Applies to

See also


Feedback

Was this page helpful?