Поделиться через


IXRPasswordBox::SetSelectionForeground (Compact 2013)

3/28/2014

This method sets the brush used to paint the selected text in this password box.

Syntax

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

Parameters

  • pSelectionForeground
    [in] Pointer to an IXRBrush derived object used to paint the selected text in this password box.

Return Value

Returns an HRESULT that indicates success or no success.

Remarks

The brush that you pass in pSelectionForeground changes the foreground of the selected password displayed in this password box. For example, a brush for the selection foreground can represent a solid color, or a linear or radial gradient. For more information about brush classes derived from IXRBrush, see IXRBrush.

.NET Framework Equivalent

System.Windows.Controls.PasswordBox.SelectionForeground

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRPasswordBox
IXRPasswordBox::GetSelectionForeground