Dela via


RichEditTextDocument.SetText(TextSetOptions, String) Method

Definition

Sets the text of the document.

public:
 virtual void SetText(TextSetOptions options, Platform::String ^ value) = SetText;
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 that control how the text is inserted into the document.

value
String

Platform::String

winrt::hstring

The new text.

Implements

M:Windows.UI.Text.ITextDocument.SetText(Windows.UI.Text.TextSetOptions,System.String) M:Windows.UI.Text.ITextDocument.SetText(Windows.UI.Text.TextSetOptions,Platform::String) M:Windows.UI.Text.ITextDocument.SetText(Windows.UI.Text.TextSetOptions,winrt::hstring)

Remarks

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

Applies to