次の方法で共有


IXRTextBox::SetSelectionForeground (Windows Embedded CE 6.0)

1/6/2010

This method sets the Brush used for the selected text in this text box.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSelectionForeground(
    IXRBrush *pSelectionForeground
) = 0;

Parameters

  • pSelectionForeground
    [in] Pointer to an object derived from IXRBrush that is used for the selected text in this text box.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value that you set in pSelectionForeground indicates the Brush used for the foreground of the selected text in this text-box control.

.NET Framework Equivalent

System.Windows.Controls.TextBox.SelectionForeground

Requirements

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

See Also

Reference

IXRTextBox
IXRTextBox::GetSelectionForeground