System.Windows.Forms.Design.Behavior.BehaviorService.ControlRectInAdornerWindow Method

Returns the bounding System.Drawing.Rectangle of a System.Windows.Forms.Control.

Syntax

public System.Drawing.Rectangle ControlRectInAdornerWindow (System.Windows.Forms.Control c)

Parameters

c
The System.Windows.Forms.Control to translate.

Returns

The bounding System.Drawing.Rectangle of a System.Windows.Forms.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 System.Windows.Forms.Design.Behavior.BehaviorService to intercept all messages. It also serves as a unified canvas on which to paint a System.Windows.Forms.Design.Behavior.Glyph.

Requirements

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