Share via


StyleSet.GetBrush Method

Retrieves a specific Brush from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there. This is a singleton. Do not dispose - this will crash! Use immediately. Use GetBrushCopy if another brush is needed!

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaration
Public Function GetBrush ( _
    brushId As StyleSetResourceId _
) As Brush
public Brush GetBrush(
    StyleSetResourceId brushId
)
public:
Brush^ GetBrush(
    StyleSetResourceId^ brushId
)
member GetBrush : 
        brushId:StyleSetResourceId -> Brush 
public function GetBrush(
    brushId : StyleSetResourceId
) : Brush

Parameters

Return Value

Type: System.Drawing.Brush

.NET Framework Security

See Also

Reference

StyleSet Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace