PanelDesigner 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The recommended alternative is PanelContainerDesigner because it uses an EditableDesignerRegion for editing the content. Designer regions allow for better control of the content being edited. http://go.microsoft.com/fwlink/?linkid=14202
在控件的可视化设计器 Panel 中提供设计时支持。
public ref class PanelDesigner : System::Web::UI::Design::ReadWriteControlDesigner
public class PanelDesigner : System.Web.UI.Design.ReadWriteControlDesigner
[System.Obsolete("The recommended alternative is PanelContainerDesigner because it uses an EditableDesignerRegion for editing the content. Designer regions allow for better control of the content being edited. http://go.microsoft.com/fwlink/?linkid=14202")]
public class PanelDesigner : System.Web.UI.Design.ReadWriteControlDesigner
type PanelDesigner = class
inherit ReadWriteControlDesigner
[<System.Obsolete("The recommended alternative is PanelContainerDesigner because it uses an EditableDesignerRegion for editing the content. Designer regions allow for better control of the content being edited. http://go.microsoft.com/fwlink/?linkid=14202")>]
type PanelDesigner = class
inherit ReadWriteControlDesigner
Public Class PanelDesigner
Inherits ReadWriteControlDesigner
- 继承
- 属性
注解
该 Panel 控件用作其他控件的容器,尤其是在以编程方式生成控件时。
该 PanelDesigner 类为可视化设计器中的控件提供设计时支持 Panel 。 但是,对于面板控件的所有新实现,请使用 PanelContainerDesigner 而不是 PanelDesigner。
在可视化设计器中,从“源”视图切换到“设计”视图时,将分析描述关联 Panel 控件的标记源代码,并在设计图面上创建控件的设计时版本。 切换回源视图时,设计时控件将保存到标记源代码中,并编辑到网页的标记中。
该方法 MapPropertyToStyle 将指定的属性和值映射到指定的标记样式。 此方法 OnBehaviorAttached 在将行为附加到设计器时提供通知。
构造函数
| 名称 | 说明 |
|---|---|
| PanelDesigner() |
已过时.
初始化 PanelDesigner 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| ActionLists |
已过时.
获取控件设计器的操作列表集合。 (继承自 ControlDesigner) |
| AllowResize |
已过时.
获取一个值,该值指示是否可以在设计时环境中调整控件的大小。 (继承自 ControlDesigner) |
| AssociatedComponents |
已过时.
获取与设计器管理的组件关联的组件的集合。 (继承自 ComponentDesigner) |
| AutoFormats |
已过时.
获取在设计时在关联控件的 自动格式 对话框中显示的预定义自动格式方案的集合。 (继承自 ControlDesigner) |
| Behavior |
已过时.
获取或设置与设计器关联的 DHTML 行为。 (继承自 HtmlControlDesigner) |
| Component |
已过时.
获取此设计器正在设计的组件。 (继承自 ComponentDesigner) |
| DataBindings |
已过时.
获取当前控件的数据绑定集合。 (继承自 HtmlControlDesigner) |
| DataBindingsEnabled |
已过时.
获取一个值,该值指示关联控件的包含区域是否支持数据绑定。 (继承自 ControlDesigner) |
| DesignerState |
已过时.
获取一个对象,该对象用于在设计时保存关联控件的数据。 (继承自 ControlDesigner) |
| DesignTimeElement |
已过时.
获取表示与设计图面上的对象关联的 HtmlControlDesigner 控件的设计时对象。 (继承自 HtmlControlDesigner) |
| DesignTimeElementView |
已过时.
获取控件设计器的视图控件对象。 (继承自 ControlDesigner) |
| DesignTimeHtmlRequiresLoadComplete |
已过时.
获取一个值,该值指示设计主机在调用方法之前 GetDesignTimeHtml 是否必须完成加载。 (继承自 ControlDesigner) |
| Expressions |
已过时.
获取设计时当前控件的表达式绑定。 (继承自 HtmlControlDesigner) |
| HidePropertiesInTemplateMode |
已过时.
获取一个值,该值指示当控件处于模板模式时关联控件的属性是否隐藏。 (继承自 ControlDesigner) |
| ID |
已过时.
获取或设置控件的 ID 字符串。 (继承自 ControlDesigner) |
| InheritanceAttribute |
已过时.
获取一个属性,该特性指示关联组件的继承类型。 (继承自 ComponentDesigner) |
| Inherited |
已过时.
获取一个值,该值指示是否继承此组件。 (继承自 ComponentDesigner) |
| InTemplateMode |
已过时.
获取一个值,该值指示控件是在设计主机中处于模板查看或编辑模式。 该 InTemplateMode 属性为只读。 (继承自 ControlDesigner) |
| IsDirty |
已过时.
获取或设置一个值,该值指示是否已将 Web 服务器控件标记为已更改。 (继承自 ControlDesigner) |
| ParentComponent |
已过时.
获取此设计器的父组件。 (继承自 ComponentDesigner) |
| ReadOnly |
已过时.
获取或设置一个值,该值指示控件的属性在设计时是否为只读。 (继承自 ControlDesigner) |
| RootDesigner |
已过时.
获取包含关联控件的 Web 窗体页的控件设计器。 (继承自 ControlDesigner) |
| ShadowProperties |
已过时.
获取替代用户设置的属性值的集合。 (继承自 ComponentDesigner) |
| ShouldCodeSerialize |
已过时.
获取或设置一个值,该值指示是否在序列化期间为当前设计文档的代码隐藏文件中的控件创建字段声明。 (继承自 HtmlControlDesigner) |
| Tag |
已过时.
获取一个对象,该对象表示关联控件的 HTML 标记元素。 (继承自 ControlDesigner) |
| TemplateGroups |
已过时.
获取模板组的集合,每个组包含一个或多个模板定义。 (继承自 ControlDesigner) |
| UsePreviewControl |
已过时.
获取一个值,该值指示控件设计器是否使用临时预览控件生成设计时 HTML 标记。 (继承自 ControlDesigner) |
| Verbs |
已过时.
获取与设计器关联的组件支持的设计时谓词。 (继承自 ComponentDesigner) |
| ViewControl |
已过时.
获取或设置可用于预览设计时 HTML 标记的 Web 服务器控件。 (继承自 ControlDesigner) |
| ViewControlCreated |
已过时.
获取或设置一个值,该值 |
| Visible |
已过时.
获取一个值,该值指示控件在设计时是否可见。 (继承自 ControlDesigner) |
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| IDesignerFilter.PostFilterAttributes(IDictionary) |
已过时.
有关此成员的说明,请参阅 PostFilterAttributes(IDictionary) 方法。 (继承自 ComponentDesigner) |
| IDesignerFilter.PostFilterEvents(IDictionary) |
已过时.
有关此成员的说明,请参阅 PostFilterEvents(IDictionary) 方法。 (继承自 ComponentDesigner) |
| IDesignerFilter.PostFilterProperties(IDictionary) |
已过时.
有关此成员的说明,请参阅 PostFilterProperties(IDictionary) 方法。 (继承自 ComponentDesigner) |
| IDesignerFilter.PreFilterAttributes(IDictionary) |
已过时.
有关此成员的说明,请参阅 PreFilterAttributes(IDictionary) 方法。 (继承自 ComponentDesigner) |
| IDesignerFilter.PreFilterEvents(IDictionary) |
已过时.
有关此成员的说明,请参阅 PreFilterEvents(IDictionary) 方法。 (继承自 ComponentDesigner) |
| IDesignerFilter.PreFilterProperties(IDictionary) |
已过时.
有关此成员的说明,请参阅 PreFilterProperties(IDictionary) 方法。 (继承自 ComponentDesigner) |
| ITreeDesigner.Children |
已过时.
有关此成员的说明,请参阅 Children 该属性。 (继承自 ComponentDesigner) |
| ITreeDesigner.Parent |
已过时.
有关此成员的说明,请参阅 Parent 该属性。 (继承自 ComponentDesigner) |