語言

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在 上的界限。

傳回

一個 LinearGradientBrush 利用參數 rectangle 定義按鈕區域的物件,筆刷在該區域從展開按鈕左上角到右下角,線性漸層地呈現兩種顏色。

備註

如果展開按鈕的背景畫筆在呼叫 null 前未設為 Nothing(Visual Basic 中為 GetExpandButtonBackgroundBrush),該方法會丟棄先前的畫筆並建立新的。

適用於