語言

ActivityDesignerPaint.DrawExpandButton 方法

定義

繪製一個按鈕,用於在活動設計器表面展開和摺疊複合設計器。

public:
 static void DrawExpandButton(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle boundingRect, bool drawExpanded, System::Workflow::ComponentModel::Design::CompositeDesignerTheme ^ compositeDesignerTheme);
public static void DrawExpandButton(System.Drawing.Graphics graphics, System.Drawing.Rectangle boundingRect, bool drawExpanded, System.Workflow.ComponentModel.Design.CompositeDesignerTheme compositeDesignerTheme);
static member DrawExpandButton : System.Drawing.Graphics * System.Drawing.Rectangle * bool * System.Workflow.ComponentModel.Design.CompositeDesignerTheme -> unit
Public Shared Sub DrawExpandButton (graphics As Graphics, boundingRect As Rectangle, drawExpanded As Boolean, compositeDesignerTheme As CompositeDesignerTheme)

參數

graphics
Graphics

就是 Graphics 要畫鈕扣的地方。

boundingRect
Rectangle

那 Rectangle 個定義了按鈕的邊界。

drawExpanded
Boolean

true用來畫一個擴展按鈕;否則,。 false

compositeDesignerTheme
CompositeDesignerTheme

CompositeDesignerTheme與用於渲染按鈕的活動設計器相關聯。

例外狀況

graphics 或 compositeDesignerTheme 包含一個空參考(Nothing 在 Visual Basic 中)。

適用於