แก้ไข

แชร์ผ่าน


BehaviorService.ControlRectInAdornerWindow(Control) Method

Definition

Returns the bounding Rectangle of a Control.

public:
 System::Drawing::Rectangle ControlRectInAdornerWindow(System::Windows::Forms::Control ^ c);
public System.Drawing.Rectangle ControlRectInAdornerWindow (System.Windows.Forms.Control c);
member this.ControlRectInAdornerWindow : System.Windows.Forms.Control -> System.Drawing.Rectangle
Public Function ControlRectInAdornerWindow (c As Control) As Rectangle

Parameters

c
Control

The Control to translate.

Returns

The bounding Rectangle of a Control translated to the adorner window coordinates.

Remarks

The adorner window is a transparent window that resides on top of the designer's frame. This window is used by the BehaviorService to intercept all messages. It also serves as a unified canvas on which to paint a Glyph.

Applies to

See also