TemplatedEditableDesignerRegion 类

定义

为关联控件定义设计时标记内的可编辑内容区域。Defines an editable region of content within the design-time markup for the associated control.

public ref class TemplatedEditableDesignerRegion : System::Web::UI::Design::EditableDesignerRegion
public class TemplatedEditableDesignerRegion : System.Web.UI.Design.EditableDesignerRegion
type TemplatedEditableDesignerRegion = class
    inherit EditableDesignerRegion
Public Class TemplatedEditableDesignerRegion
Inherits EditableDesignerRegion
继承
派生

构造函数

TemplatedEditableDesignerRegion(TemplateDefinition)

使用提供的模板定义初始化 TemplatedEditableDesignerRegion 类的新实例。Initializes a new instance of the TemplatedEditableDesignerRegion class using the provided template definition.

属性

Content

获取或设置区域内容的 HTML 标记。Gets or sets the HTML markup for the content of the region.

(继承自 EditableDesignerRegion)
Description

获取或设置设计器区域的说明。Gets or sets the description for a designer region.

(继承自 DesignerRegion)
Designer

获取关联的设计器组件。Gets the associated designer component.

(继承自 DesignerObject)
DisplayName

获取或设置设计器区域的友好显示名称。Gets or sets the friendly display name for a designer region.

(继承自 DesignerRegion)
EnsureSize

获取或设置一个值,指示设计宿主是否在设计器区域上显式设置区域大小。Gets or sets a value indicating whether the region size is to be explicitly set on the designer region by the design host.

(继承自 DesignerRegion)
Highlight

获取或设置一个值,指示是否在设计图面上突出显示设计器区域。Gets or sets a value indicating whether to highlight the designer region on the design surface.

(继承自 DesignerRegion)
IsSingleInstanceTemplate

获取或设置模板是否在每个包含控件的实例中发生一次,如 header 模板,或者根据可用数据出现多次,如 item 模板。Gets or sets whether the template occurs only once per instance of the containing control, such as a header template, or can appear many times according to available data, such as an item template.

Name

获取对象的名称。Gets the name of the object.

(继承自 DesignerObject)
Properties

获取对象的属性。Gets the object's properties.

(继承自 DesignerObject)
Selectable

获取或设置一个值,指示用户是否可以在设计图面上选择该设计器区域。Gets or sets a value indicating whether the designer region can be selected by the user on the design surface.

(继承自 DesignerRegion)
Selected

获取或设置一个值,指示设计图面上的设计器区域当前是否被选中。Gets or sets a value indicating whether the designer region is currently selected on the design surface.

(继承自 DesignerRegion)
ServerControlsOnly

获取或设置一个值,该值指示区域是否只能接受 Web 服务器控件。Gets or sets a value indicating whether the region can accept only Web server controls.

(继承自 EditableDesignerRegion)
SupportsDataBinding

获取或设置一个值,该值指示模板是否可以绑定到数据源。Gets or sets a value that indicates whether the template can be bound to a data source.

TemplateDefinition

获取一个 TemplateDefinition 对象,该对象描述由区域所引用的模板。Gets a TemplateDefinition object describing the template that is referenced by the region.

UserData

获取或设置可选用户数据,以关联设计器区域。Gets or sets optional user data to associate with the designer region.

(继承自 DesignerRegion)

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetBounds()

检索设计图面上设计器区域的大小。Retrieves the size of the designer region on the design surface.

(继承自 DesignerRegion)
GetChildViewRendering(Control)

返回一个 ViewRendering 对象,该对象包含给定控件的设计时 HTML 标记。Returns a ViewRendering object containing the design-time HTML markup for the given control.

(继承自 EditableDesignerRegion)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetService(Type)

从设计宿主中获取由所提供的类型标识的服务。Gets a service from the design host, as identified by the provided type.

(继承自 DesignerObject)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IServiceProvider.GetService(Type)

有关此成员的说明,请参见 GetService(Type)For a description of this member, see GetService(Type).

(继承自 DesignerObject)

适用于

另请参阅