ShapeField::GetBackgroundBrushId Method (DiagramClientView^, ShapeElement^)

 

Gets the ID of the brush that draws the background for the shape element to which this shape field is assigned.

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

public:
virtual StyleSetResourceId^ GetBackgroundBrushId(
	DiagramClientView^ view,
	ShapeElement^ parentShape
)

Parameters

view
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramClientView^

The view.

parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams::ShapeElement^

The shape element to which the shape field is assigned.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams::StyleSetResourceId^

The ID of the brush that draws the background for the shape element to which the shape field is assigned.

By default, this method returns the default background brush id. To dynamically change the background brush for this ShapeField, override this method.

Return to top
Show: