共用方式為


SelectionGlyph.GetBounds(ActivityDesigner, Boolean) 方法

定義

傳回指定 ActivityDesigner 上選取圖像的界限。

public:
 override System::Drawing::Rectangle GetBounds(System::Workflow::ComponentModel::Design::ActivityDesigner ^ designer, bool activated);
public override System.Drawing.Rectangle GetBounds (System.Workflow.ComponentModel.Design.ActivityDesigner designer, bool activated);
override this.GetBounds : System.Workflow.ComponentModel.Design.ActivityDesigner * bool -> System.Drawing.Rectangle
Public Overrides Function GetBounds (designer As ActivityDesigner, activated As Boolean) As Rectangle

參數

designer
ActivityDesigner

與選取圖像關聯的 ActivityDesigner

activated
Boolean

如果選取圖像要顯示在活動設計工具介面上則為 true,否則為 false

傳回

Rectangle,代表圖像的界限。

備註

除非在衍生類別中覆寫,否則 GetBounds 會傳回大小為 Boundsdesigner 一點五倍的矩形。

適用於