LockedActivityGlyph.GetBounds(ActivityDesigner, Boolean) 方法

定義

傳回特定 ActivityDesigner 上的圖像界限。

C#
public override System.Drawing.Rectangle GetBounds (System.Workflow.ComponentModel.Design.ActivityDesigner designer, bool activated);

參數

designer
ActivityDesigner

與圖像相關聯的 ActivityDesigner

activated
Boolean

true,用來指示圖像是否顯示在活動設計工具介面上,否則為 false

傳回

Rectangle

Rectangle,代表圖像的界限。

例外狀況

designer 包含 null 參考 (在 Visual Basic 中為 Nothing)。

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8