CompositeDesignerTheme.GetExpandButtonBackgroundBrush(Rectangle) 方法

定义

检索一个画笔,该画笔定义复合活动设计器上展开按钮的背景显示属性。

public:
 System::Drawing::Brush ^ GetExpandButtonBackgroundBrush(System::Drawing::Rectangle rectangle);
public System.Drawing.Brush GetExpandButtonBackgroundBrush(System.Drawing.Rectangle rectangle);
member this.GetExpandButtonBackgroundBrush : System.Drawing.Rectangle -> System.Drawing.Brush
Public Function GetExpandButtonBackgroundBrush (rectangle As Rectangle) As Brush

参数

rectangle
Rectangle

定义 Rectangle 展开按钮的边界的 CompositeActivityDesigner

返回

使用LinearGradientBrushrectangle参数定义按钮区域的对象,画笔在从左上角到展开按钮右下角的线性渐变中应用两种颜色。

注解

如果在调用 null 之前,展开按钮的背景画笔未设置为 NothingGetExpandButtonBackgroundBrush Visual Basic),该方法将释放上一个画笔并创建一个新画笔。

适用于