StyleSet.AddBrush Method
Add a new Brush to this StyleSet.
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 Sub AddBrush ( _
newBrushId As StyleSetResourceId, _
baseBrushId As StyleSetResourceId, _
brushSettings As BrushSettings _
)
public void AddBrush(
StyleSetResourceId newBrushId,
StyleSetResourceId baseBrushId,
BrushSettings brushSettings
)
public:
void AddBrush(
StyleSetResourceId^ newBrushId,
StyleSetResourceId^ baseBrushId,
BrushSettings^ brushSettings
)
member AddBrush :
newBrushId:StyleSetResourceId *
baseBrushId:StyleSetResourceId *
brushSettings:BrushSettings -> unit
public function AddBrush(
newBrushId : StyleSetResourceId,
baseBrushId : StyleSetResourceId,
brushSettings : BrushSettings
)
Parameters
newBrushId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceIdId of the new brush to create.
baseBrushId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceIdId of the brush on which to base the new one.
brushSettings
Type: Microsoft.VisualStudio.Modeling.Diagrams.BrushSettingsSettings flags for the Brush's overridden or immutable properties.
.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.