ControlLocation ControlLocation ControlLocation ControlLocation Enum

Definition

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

public enum class ControlLocation
public enum ControlLocation
type ControlLocation = 
Public Enum ControlLocation
Inheritance
ControlLocationControlLocationControlLocationControlLocation

Fields

After After After After 1

Adds the control after the current selection or current control.

Before Before Before Before 0

Adds the control before the current selection or current control.

First First First First 2

Adds the control at the start of the document.

FirstChild FirstChild FirstChild FirstChild 4

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

Last Last Last Last 3

Adds the control at the end of the document.

LastChild LastChild LastChild 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

See also