Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a new TextFormattingRunProperties with the properties of this one but with the new foreground Brush set to the specified brush.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaration
Public Function SetForegroundBrush ( _
brush As Brush _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetForegroundBrush(
Brush brush
)
public:
TextFormattingRunProperties^ SetForegroundBrush(
Brush^ brush
)
member SetForegroundBrush :
brush:Brush -> TextFormattingRunProperties
public function SetForegroundBrush(
brush : Brush
) : TextFormattingRunProperties
Parameters
- brush
Type: System.Windows.Media.Brush
The new foreground brush.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
The TextFormattingRunProperties.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | brush is nulla null reference (Nothing in Visual Basic). |
Remarks
The brush is frozen 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.