CompositeDesignerTheme.GetExpandButtonBackgroundBrush Method (Rectangle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves a brush that defines the background display properties of the expand button on the composite activity designer.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public Brush GetExpandButtonBackgroundBrush(
	Rectangle rectangle
)

Parameters

rectangle
Type: System.Drawing.Rectangle

The Rectangle that defines the bounds of the expand button on the CompositeActivityDesigner.

Return Value

Type: System.Drawing.Brush

A LinearGradientBrush object that uses the rectangle parameter to define the button area in which the brush applies two colors in a linear gradient from the upper-left corner to the lower-right corner of the expand button.

If the background brush for the expand button is not set to null (Nothing in Visual Basic) before GetExpandButtonBackgroundBrush is called, the method disposes of the previous brush and creates a new one.

.NET Framework
Available since 3.0
Return to top
Show: