StyleSet.GetBrushCopy 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 copy. Caller is responsible for dispose.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Function GetBrushCopy ( _
brushId As StyleSetResourceId _
) As Brush
public Brush GetBrushCopy(
StyleSetResourceId brushId
)
public:
Brush^ GetBrushCopy(
StyleSetResourceId^ brushId
)
member GetBrushCopy :
brushId:StyleSetResourceId -> Brush
public function GetBrushCopy(
brushId : StyleSetResourceId
) : Brush
Parameters
brushId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceIdID of brush
Return Value
Type: System.Drawing.Brush
.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.