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大小。

适用于