Condividi tramite


TextFormattingRunProperties.ForegroundBrushSame Method

Determines whether the foreground brush for this TextFormattingRunProperties is the same as the specified.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Public Function ForegroundBrushSame ( _
    brush As Brush _
) As Boolean
public bool ForegroundBrushSame(
    Brush brush
)
public:
bool ForegroundBrushSame(
    Brush^ brush
)
member ForegroundBrushSame : 
        brush:Brush -> bool
public function ForegroundBrushSame(
    brush : Brush
) : boolean

Parameters

  • brush
    Type: Brush

    The other Brush.

Return Value

Type: Boolean
true if the foreground brushes are the same, false if they are not.

.NET Framework Security

See Also

Reference

TextFormattingRunProperties Class

Microsoft.VisualStudio.Text.Formatting Namespace