次の方法で共有


IXRTextBox::SetSelectedText (Windows Embedded CE 6.0)

1/6/2010

This method sets the content of the current selection in this text box.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSelectedText(
    const WCHAR* pSelectedText
) = 0;

Parameters

  • pSelectedText
    [in] Pointer to a string that contains the new selected text in this text box.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you call this method, it replaces the current selection by supplying the specified string.

.NET Framework Equivalent

System.Windows.Controls.TextBox.SelectedText

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTextBox
IXRTextBox::GetSelectedText