BehaviorService.ControlRectInAdornerWindow Method (Control)

 

Returns the bounding Rectangle of a Control.

Namespace:   System.Windows.Forms.Design.Behavior
Assembly:  System.Design (in System.Design.dll)

public Rectangle ControlRectInAdornerWindow(
	Control c
)

Parameters

c
Type: System.Windows.Forms.Control

The Control to translate.

Return Value

Type: System.Drawing.Rectangle

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

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.

.NET Framework
Available since 2.0
Return to top
Show: