次の方法で共有


IXRTextBox::SetText (Compact 2013)

3/28/2014

This method sets the text contents of this text box.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetText(
    const WCHAR* pText
) = 0;

Parameters

  • pText
    [in] Pointer to a string that contains the new text contents of this text box.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you call this method, it replaces the contents of the text box by supplying the specified string.

.NET Framework Equivalent

System.Windows.Controls.TextBox.Text

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBox
IXRTextBox::GetText