TextFormattingRunProperties.SetBackground Method
Gets a new TextFormattingRunProperties with the properties of this one but with the background set to the specified color.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
声明
Public Function SetBackground ( _
background As Color _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetBackground(
Color background
)
public:
TextFormattingRunProperties^ SetBackground(
Color background
)
member SetBackground :
background:Color -> TextFormattingRunProperties
public function SetBackground(
background : Color
) : TextFormattingRunProperties
Parameters
- background
Type: System.Windows.Media.Color
The new background color.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
The TextFormattingRunProperties.
Remarks
The background brush is changed by this method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.