CompositeDesignerTheme.GetExpandButtonBackgroundBrush(Rectangle) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索一个画笔,该画笔定义复合活动设计器上展开按钮的背景显示属性。
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 之前,展开按钮的背景画笔未设置为 Nothing (GetExpandButtonBackgroundBrush Visual Basic),该方法将释放上一个画笔并创建一个新画笔。