Export (0) Print
Expand All

WebFormsRootDesigner Class

Provides a base class for the design-time functionality of a Web Forms page and allows access to and manipulation of components and controls that are contained within the Web Forms page at design time.

System.Object
  System.Web.UI.Design.WebFormsRootDesigner

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public abstract class WebFormsRootDesigner : IRootDesigner, 
	IDesigner, IDisposable, IDesignerFilter

The WebFormsRootDesigner type exposes the following members.

  NameDescription
Protected methodWebFormsRootDesignerInitializes a new instance of the WebFormsRootDesigner class.
Top

  NameDescription
Public propertyComponentGets or sets the component that this designer is designing.
Public propertyCurrentCultureGets the culture information for the current thread.
Public propertyDocumentUrlWhen overridden in a derived class, gets the URL at which the Web Forms page is located.
Public propertyIsDesignerViewLockedWhen overridden in a derived class, gets a value indicating whether the designer view is locked.
Public propertyIsLoadingWhen overridden in a derived class, gets a value indicating whether the Web Forms page is still loading.
Public propertyReferenceManagerWhen overridden in a derived class, gets a WebFormsReferenceManager object that has information about the current Web Forms page.
Protected propertySupportedTechnologiesGets an array of technologies that the designer component can support for its display.
Protected propertyVerbsGets the design-time verbs that are supported by the designer.
Top

  NameDescription
Public methodAddClientScriptToDocumentWhen overridden in a derived class, adds a client script element to the current Web Forms page.
Public methodAddControlToDocumentWhen overridden in a derived class, adds a Web server control to the Web Forms page.
Protected methodCreateDesignerActionServiceReturns a design-time DesignerActionService object.
Protected methodCreateUrlResolutionServiceReturns an IUrlResolutionService that resolves relative URLs.
Protected methodDisposeReleases the unmanaged resources that are used by the WebFormsRootDesigner and optionally releases the managed resources.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeFrees the resources of the current WebFormsRootDesigner object before it is reclaimed by the garbage collector. (Overrides Object.Finalize().)
Public methodGenerateEmptyDesignTimeHtmlGenerates empty HTML markup for a control at design time.
Public methodGenerateErrorDesignTimeHtmlGenerates HTML markup that is used to display an error message at design time by using the specified control, exception, and message.
Public methodGetClientScriptsInDocumentWhen overridden in a derived class, returns a ClientScriptItemCollection object that contains all client script items that are on the page.
Protected methodGetControlViewAndTagWhen overridden in a derived class, returns both the current design-time view and the HTML markup for the specified control.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetServiceReturns the requested service.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetViewReturns a view object that is determined by the provided ViewTechnology object.
Public methodInitializeInitializes the WebFormsRootDesigner object using the specified component.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnLoadCompleteRaises the LoadComplete event when the Web Forms page is completely loaded.
Protected methodPostFilterAttributesAllows a designer to change or remove items from the set of attributes that the designer exposes through a TypeDescriptor object.
Protected methodPostFilterEventsAllows a designer to change or remove items from the set of events that the designer exposes through a TypeDescriptor object.
Protected methodPostFilterPropertiesAllows a designer to change or remove items from the set of properties that the designer exposes through a TypeDescriptor object.
Protected methodPreFilterAttributesAllows a designer to add to the set of attributes that the designer exposes through a TypeDescriptor object.
Protected methodPreFilterEventsAllows a designer to add items to the set of events that the designer exposes through a TypeDescriptor object.
Protected methodPreFilterPropertiesAllows a designer to add items to the set of properties that the designer exposes through a TypeDescriptor object.
Public methodRemoveClientScriptFromDocumentRemoves the specified client script from the document at design time.
Public methodRemoveControlFromDocumentWhen overridden in a derived class, removes the specified control from the Web Forms page.
Public methodResolveUrlConverts a relative URL into a fully qualified URL.
Public methodSetControlIDSets the ID property of the specified control with the specified string.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventLoadCompleteOccurs when the designer completes loading the Web Forms page.
Top

  NameDescription
Explicit interface implemetationPrivate methodIDesigner.DoDefaultActionFor a description of this member, see IDesigner.DoDefaultAction.
Explicit interface implemetationPrivate propertyIDesigner.VerbsGets or sets the design-time verbs that are supported by the designer. For a description of this member, see IDesigner.Verbs.
Explicit interface implemetationPrivate methodIDesignerFilter.PostFilterAttributesInfrastructure. For a description of this member, see IDesignerFilter.PostFilterAttributes.
Explicit interface implemetationPrivate methodIDesignerFilter.PostFilterEventsInfrastructure. For a description of this member, see IDesignerFilter.PostFilterEvents.
Explicit interface implemetationPrivate methodIDesignerFilter.PostFilterPropertiesInfrastructure. For a description of this member, see IDesignerFilter.PostFilterProperties.
Explicit interface implemetationPrivate methodIDesignerFilter.PreFilterAttributesInfrastructure. For a description of this member, see IDesignerFilter.PreFilterAttributes.
Explicit interface implemetationPrivate methodIDesignerFilter.PreFilterEventsInfrastructure. For a description of this member, see IDesignerFilter.PreFilterEvents.
Explicit interface implemetationPrivate methodIDesignerFilter.PreFilterPropertiesInfrastructure. For a description of this member, see IDesignerFilter.PreFilterProperties.
Explicit interface implemetationPrivate methodIDisposable.DisposeFor a description of this member, see Dispose.
Explicit interface implemetationPrivate methodIRootDesigner.GetViewGets a view object for the specified view technology. For a description of this member, see IRootDesigner.GetView(ViewTechnology).
Explicit interface implemetationPrivate propertyIRootDesigner.SupportedTechnologiesGets an array of technologies that the designer component can support for its display. For a description of this member, see IRootDesigner.SupportedTechnologies.
Top

A design host, such as Visual Studio 2005, must provide its own derived version of the WebFormsRootDesigner class to control designers through the RootDesigner property of the designer. Control designers use the RootDesigner property to access and manipulate the containing Web Forms page at design time.

Notes to Inheritors

When you inherit from the WebFormsRootDesigner class, you must override the following members:

.NET Framework

Supported in: 4.6, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft