Bagikan melalui


RichEditTextRange.SetText(TextSetOptions, String) Metode

Definisi

Mengganti teks dalam rentang teks.

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)

Parameter

options
TextSetOptions

Bendera konversi yang mengontrol bagaimana teks disisipkan dalam rentang teks.

value
String

Platform::String

winrt::hstring

Teks baru.

Penerapan

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

Berlaku untuk