Share via


StyleSet.GetBrush(StyleSetResourceId) Method

Definition

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!

public:
 System::Drawing::Brush ^ GetBrush(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ brushId);
public System.Drawing.Brush GetBrush (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId brushId);
member this.GetBrush : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId -> System.Drawing.Brush
Public Function GetBrush (brushId As StyleSetResourceId) As Brush

Parameters

brushId
StyleSetResourceId

Id of brush to retrieve.

Returns

The requested Brush.

Applies to