ShapeField.GetBackgroundBrush Method

Gets 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 GetBackgroundBrush ( _
    view As DiagramClientView, _
    parentShape As ShapeElement, _
    ByRef oldColor As Color _
) As Brush
'使用
Dim instance As ShapeField
Dim view As DiagramClientView
Dim parentShape As ShapeElement
Dim oldColor As Color
Dim returnValue As Brush

returnValue = instance.GetBackgroundBrush(view, _
    parentShape, oldColor)
public virtual Brush GetBackgroundBrush(
    DiagramClientView view,
    ShapeElement parentShape,
    ref Color oldColor
)
public:
virtual Brush^ GetBackgroundBrush(
    DiagramClientView^ view, 
    ShapeElement^ parentShape, 
    Color% oldColor
)
public function GetBackgroundBrush(
    view : DiagramClientView, 
    parentShape : ShapeElement, 
    oldColor : Color
) : Brush

Parameters

Return Value

Type: System.Drawing.Brush

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

Remarks

You can also use GetBackgroundBrushId to change the background brush for the shape field.

Permissions

See Also

Reference

ShapeField Class

ShapeField Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace