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 上展開按鈕的界限。

傳回

Brush

LinearGradientBrush 物件,使用 rectangle 參數來定義筆刷區域裡,筆刷在展開按鈕中從線形漸層左上角到右下角套用的兩個顏色。

備註

如果展開按鈕的背景筆刷在呼叫 null 前尚未設為 Nothing (在 Visual Basic 中為 GetExpandButtonBackgroundBrush),則此方法將處置先前筆刷並建立新筆刷。

適用於