語言

ControlDesigner.GetBounds 方法

定義

取得代表控制點邊界的矩形座標,該矩形在設計表面上顯示。

public:
 System::Drawing::Rectangle GetBounds();
public System.Drawing.Rectangle GetBounds();
member this.GetBounds : unit -> System.Drawing.Rectangle
Public Function GetBounds () As Rectangle

傳回

一個 Rectangle 物件,代表控制項相對於控制項在設計表面上的邊界,而非文件本身。

適用於

另請參閱