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

G. andrew Duthie; matthew Macdonald

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

ReadWriteControlDesignerdisposable

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

This class provides functionality for designers. In the .NET framework, only the

System.Web.UI.Design.WebControls.PanelDesigner derives from this class. It uses read/write

functionality to providea design-time surface where you can directly type static inner textfor the Panel control.

Note that this class bypasses theControlDesigner.GetDesignTimeHtml( ) method,

because the design surface will be drawn using the ControlDesigner.GetDesignTimeHtml( )

method of the designers for the child controls.

public class 

ReadWriteControlDesigner : ControlDesigner { // Public Constructors public

ReadWriteControlDesigner ( ); // Public Instance Methods public override void

OnComponentChanged (object

sender , System.ComponentModel.Design.ComponentChangedEventArgs

ce );// overrides ControlDesigner // Protected Instance Methods protected virtual void

MapPropertyToStyle (string

propName , object

varPropValue ); protected override void

OnBehaviorAttached ( ); // overrides ControlDesigner }

Hierarchy

System.Object

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

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

Subclasses

System.Web.UI.Design.WebControls.PanelDesigner