ControlLocation Enumeration
TOC
Collapse the table of content
Expand the table of content

ControlLocation Enumeration

 

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

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

public enum ControlLocation

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.

The ControlLocation enumeration is used by the WebFormsRootDesigner.AddControlToDocument method.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft