ControlLocation 枚举

定义

指定在容器中添加控件的可能位置。Specifies the possible locations for adding a control in a container.

public enum class ControlLocation
public enum ControlLocation
type ControlLocation = 
Public Enum ControlLocation
继承
ControlLocation

字段

After 1

在当前所选内容或当前控件之后添加控件。Adds the control after the current selection or current control.

Before 0

在当前所选内容或当前控件之前添加控件。Adds the control before the current selection or current control.

First 2

在文档开头添加控件。Adds the control at the start of the document.

FirstChild 4

如果选择的控件是容器控件,则将控件添加为所选控件的第一个子控件。Adds the control as the first child of the selected control, if the selected control is a container control.

Last 3

在文档末尾添加控件。Adds the control at the end of the document.

LastChild 5

如果选择的控件是容器控件,则将控件添加为所选控件的最后一个子控件。Adds the control as the last child of the selected control, if the selected control is a container control.

注解

枚举由WebFormsRootDesigner.AddControlToDocument方法使用。 ControlLocationThe ControlLocation enumeration is used by the WebFormsRootDesigner.AddControlToDocument method.

适用于

另请参阅