System.Web.UI.Design.ControlLocation Enumeration

Specifies the possible locations for adding a control in a container.

Syntax

public enum ControlLocation

Remarks

The System.Web.UI.Design.ControlLocation enumeration is used by the WebFormsRootDesigner.AddControlToDocument(System.Web.UI.Control, System.Web.UI.Control, ControlLocation) method.

Members

Member NameDescription
After

Adds the control after the current selection or current control.

Before

Adds the control before the current selection or current control.

First

Adds the control at the start of the document.

FirstChild

Adds the control as the first child of the selected control, if the selected control is a container control.

Last

Adds the control at the end of the document.

LastChild

Adds the control as the last child of the selected control, if the selected control is a container control.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0