Edit

Share via


ControlLocation Enum

Definition

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

C#
public enum ControlLocation
Inheritance
ControlLocation

Fields

Name Value Description
Before 0

Adds the control before the current selection or current control.

After 1

Adds the control after the current selection or current control.

First 2

Adds the control at the start of the document.

Last 3

Adds the control at the end of the document.

FirstChild 4

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

LastChild 5

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

Remarks

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

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also