Compartilhar via


ShapeField.GetBackgroundBrushId(DiagramClientView, ShapeElement) Method

Definition

Gets the id of the background brush to draw with for the specified ShapeElement instance.

public:
 virtual Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ GetBackgroundBrushId(Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId GetBackgroundBrushId (Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetBackgroundBrushId : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
override this.GetBackgroundBrushId : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
Public Overridable Function GetBackgroundBrushId (view As DiagramClientView, parentShape As ShapeElement) As StyleSetResourceId

Parameters

parentShape
ShapeElement

The ShapeElement on which to draw.

Returns

The id of the background brush to draw with for the specified ShapeElement instance.

Remarks

By default, this method returns the default background brush id.

To dynamically change the background brush for this ShapeField, override this method.

Applies to