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 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Overridable Function GetBackgroundBrushId ( _
view As DiagramClientView, _
parentShape As ShapeElement _
) As StyleSetResourceId
'使用
Dim instance As ShapeField
Dim view As DiagramClientView
Dim parentShape As ShapeElement
Dim returnValue As StyleSetResourceId
returnValue = instance.GetBackgroundBrushId(view, _
parentShape)
public virtual StyleSetResourceId GetBackgroundBrushId(
DiagramClientView view,
ShapeElement parentShape
)
public:
virtual StyleSetResourceId^ GetBackgroundBrushId(
DiagramClientView^ view,
ShapeElement^ parentShape
)
public function GetBackgroundBrushId(
view : DiagramClientView,
parentShape : ShapeElement
) : StyleSetResourceId
Parameters
view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientViewThe view.
parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe 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.
Permissions
- 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.