Share via


IXRTextBox::SetSelectionBackground (Compact 2013)

3/28/2014

This method sets the Brush that fills the background of the selected text in this text box.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSelectionBackground(
    IXRBrush *pSelectionBackground
) = 0;

Parameters

  • pSelectionBackground
    [in] Pointer to an object derived from IXRBrush that fills the background of the selected text in this text box.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The Brush set by this method changes the background of the selected text in this text-box control.

.NET Framework Equivalent

System.Windows.Controls.TextBox.SelectionBackground

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBox
IXRTextBox::GetSelectionBackground