ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 503
نمايش فراداده

UserControlDesignerdisposable

System.Web.UI.Design (system.design.dll)class

This class provides a custom designer for user controls (page-like groups of text, controls, and scripting contained in .ascx files). This designer provides the design-time HTML used when you insert a user control onto a Web Forms page. This design-time HTML consists of a generic, labeled gray box that does not render any of the actual content.

public class 

UserControlDesigner : ControlDesigner { // Public Constructors public

UserControlDesigner ( ); // Public Instance Properties public override bool

AllowResize {get; } // overrides ControlDesigner public override bool

ShouldCodeSerialize {set; get; } // overrides HtmlControlDesigner // Public Instance Methods public override string

GetDesignTimeHtml ( ); // overrides ControlDesigner public override string

GetPersistInnerHtml ( ); // overrides ControlDesigner }

Hierarchy

System.Object

System.ComponentModel.Design.ComponentDesigner(System.ComponentModel.Design.

IDesigner,System.IDisposable, System.ComponentModel.Design.IDesignerFilter) HtmlControlDesigner ControlDesigner UserControlDesigner