Compartilhar via


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

'Declaração
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

Return Value

Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
The TextFormattingRunProperties.

Remarks

The background brush is changed by this method.

.NET Framework Security

See Also

Reference

TextFormattingRunProperties Class

Microsoft.VisualStudio.Text.Formatting Namespace