ControlLocation 枚举
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定在容器中添加控件的可能位置。
public enum class ControlLocation
C#
public enum ControlLocation
type ControlLocation =
Public Enum ControlLocation
- 继承
名称 | 值 | 说明 |
---|---|---|
After | 1 | 在当前所选内容或当前控件之后添加控件。 |
Before | 0 | 在当前所选内容或当前控件之前添加控件。 |
First | 2 | 在文档开头添加控件。 |
FirstChild | 4 | 如果选择的控件是容器控件,则将控件添加为所选控件的第一个子控件。 |
Last | 3 | 在文档末尾添加控件。 |
LastChild | 5 | 如果选择的控件是容器控件,则将控件添加为所选控件的最后一个子控件。 |
ControlLocation枚举由 WebFormsRootDesigner.AddControlToDocument 方法使用。
产品 | 版本 |
---|---|
.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 |