System.Web.UI.Design.ControlDesigner Members

The members of System.Web.UI.Design.ControlDesigner are listed below.

See Also: Inherited members from System.Web.UI.Design.HtmlControlDesigner

Public Constructors

Initializes a new instance of the System.Web.UI.Design.ControlDesigner class.

Public Properties

[read-only]
override
ActionListsSystem.ComponentModel.Design.DesignerActionListCollection.

Gets the action list collection for the control designer.

[read-only]
AllowResizebool.

Gets a value indicating whether the control can be resized in the design-time environment.

[read-only]
AutoFormatsDesignerAutoFormatCollection.

Gets the collection of predefined automatic formatting schemes to display in the Auto Format dialog box for the associated control at design time.

[read-only]
DesignTimeHtmlRequiresLoadCompletebool.

Gets a value indicating whether the design host must finish loading before the erload:System.Web.UI.Design.ControlDesigner.GetDesignTimeHtml method can be called.

IDstring.

Gets or sets the ID string for the control.

[read-only]
InTemplateModebool.

Gets a value indicating whether the control is in either template viewing or editing mode in the design host. The ControlDesigner.InTemplateMode property is read-only.

IsDirtybool.

Gets or sets a value indicating whether the Web server control has been marked as changed.

ReadOnlybool.

Gets or sets a value indicating whether the properties of the control are read-only at design time.

[read-only]
TemplateGroupsTemplateGroupCollection.

Gets a collection of template groups, each containing one or more template definitions.

ViewControlSystem.Web.UI.Control.

Gets or sets a Web server control that can be used for previewing the design-time HTML markup.

ViewControlCreatedbool.

Gets or sets a value indicating whether a View control has been created for display on the design surface.

Protected Properties

[read-only]
DataBindingsEnabledbool.

Gets a value indicating whether data binding is supported by the containing region for the associated control.

[read-only]
DesignerStateControlDesignerState.

Gets an object that is used to persist data for the associated control at design time.

[read-only]
DesignTimeElementViewobject.

Gets the view-control object for the control designer.

[read-only]
HidePropertiesInTemplateModebool.

Gets a value indicating whether the properties of the associated control are hidden when the control is in template mode.

[read-only]
RootDesignerWebFormsRootDesigner.

Gets the control designer for the Web Forms page that contains the associated control.

[read-only]
TagIControlDesignerTag.

Gets an object representing the HTML markup element for the associated control.

[read-only]
UsePreviewControlbool.

Gets a value indicating whether the control designer uses a temporary preview control to generate the design-time HTML markup.

Public Methods

GetBounds() : System.Drawing.Rectangle

Retrieves the coordinates of the rectangle representing the boundaries for the control as displayed on the design surface.

GetDesignTimeHtml() : string

Retrieves the HTML markup that is used to represent the control at design time.

GetDesignTimeHtml(DesignerRegionCollection) : string

Retrieves the HTML markup to display the control and populates the collection with the current control designer regions.

static
GetDesignTimeResourceProviderFactory(IServiceProvider) : DesignTimeResourceProviderFactory

Returns an appropriate resource provider factory, depending on the globalization settings in the configuration file for the site.

GetEditableDesignerRegionContent(EditableDesignerRegion) : string

Returns the content for an editable region of the design-time view of the associated control.

GetPersistenceContent() : string

Retrieves the persistable inner HTML markup of the control at design time.

GetPersistInnerHtml() : string

Retrieves the persistable inner HTML markup of the control.

GetViewRendering() : ViewRendering

Retrieves an object that contains the design-time markup for the content and regions of the associated control.

static
GetViewRendering(System.Web.UI.Control) : ViewRendering

Retrieves an object that contains the design-time markup for the content and regions of the specified control.

static
GetViewRendering(ControlDesigner) : ViewRendering

Retrieves an object that contains the design-time markup for the content and regions of the associated control for the specified control designer.

override
Initialize(System.ComponentModel.IComponent)

Initializes the control designer and loads the specified component.

Invalidate()

Invalidates the whole area of the control that is displayed on the design surface and signals the control designer to redraw the control.

Invalidate(System.Drawing.Rectangle)

Invalidates the specified area of the control that is displayed on the design surface and signals the control designer to redraw the control.

static
InvokeTransactedChange(System.ComponentModel.IComponent, TransactedChangeCallback, object, string)

Wraps a series of changes into a transaction, using the specified parameters that can be rolled back as a unit with the undo functionality of the design host.

static
InvokeTransactedChange(System.ComponentModel.IComponent, TransactedChangeCallback, object, string, System.ComponentModel.MemberDescriptor)

Wraps a series of changes into a transaction, using the specified parameters that can be rolled back as a unit with the undo functionality of the design host.

static
InvokeTransactedChange(IServiceProvider, System.ComponentModel.IComponent, TransactedChangeCallback, object, string, System.ComponentModel.MemberDescriptor)

Wraps a series of changes into a transaction, using the specified parameters that can be rolled back as a unit with the undo functionality of the design host.

IsPropertyBound(string) : bool

Retrieves a value indicating whether the specified property on the associated control is data-bound.

Localize(IDesignTimeResourceWriter)

Uses the provided resource writer to persist the localizable properties of the associated control to a resource in the design host.

OnAutoFormatApplied(DesignerAutoFormat)

Called when a predefined, automatic formatting scheme has been applied to the associated control.

OnComponentChanged(object, System.ComponentModel.Design.ComponentChangedEventArgs)

Called when the associated control changes.

OnComponentChanging(object, System.ComponentModel.Design.ComponentChangingEventArgs)

Represents the method that will handle the System.ComponentModel.Design.IComponentChangeService.ComponentChanging event for the associated control.

RaiseResizeEvent()

Raises the ControlDesigner.OnControlResize event.

RegisterClone(object, object)

Registers internal data in a cloned control.

SetEditableDesignerRegionContent(EditableDesignerRegion, string)

Specifies the content for an editable region of the control at design time.

UpdateDesignTimeHtml()

Refreshes the design-time HTML markup for the associated Web server control by calling the erload:System.Web.UI.Design.ControlDesigner.GetDesignTimeHtml method.

Protected Methods

CreateErrorDesignTimeHtml(string) : string

Creates HTML markup to display a specified error message at design time.

CreateErrorDesignTimeHtml(string, Exception) : string

Creates the HTML markup to display a specified exception error message at design time.

CreatePlaceHolderDesignTimeHtml() : string

Provides a simple rectangular placeholder representation that displays the type and ID of the control.

CreatePlaceHolderDesignTimeHtml(string) : string

Provides a simple rectangular placeholder representation that displays the type and ID of the control, and also additional specified instructions or information.

CreateViewControl() : System.Web.UI.Control

Returns a copy of the associated control for viewing or rendering on the design surface.

GetEmptyDesignTimeHtml() : string

Retrieves the HTML markup to represent a Web server control at design time that will have no visual representation at run time.

GetErrorDesignTimeHtml(Exception) : string

Retrieves the HTML markup that provides information about the specified exception.

override
OnBehaviorAttached()

Called when the control designer is attached to a Behavior object.

override
OnBindingsCollectionChanged(string)

Called when the data-binding collection changes.

OnClick(DesignerRegionMouseEventArgs)

Called by the design host when the user clicks the associated control at design time.

OnControlResize()

Called when the associated Web server control has been resized in the design host at design time.

OnPaint(System.Windows.Forms.PaintEventArgs)

Called when the control designer draws the associated control on the design surface, if the ViewFlags.CustomPaint value is true.

override
PreFilterProperties(IDictionary)

Adds properties to or removes properties from the Properties grid in a design host at design time or provides new design-time properties that might correspond to properties on the associated control.

SetRegionContent(EditableDesignerRegion, string)

Specifies the content for an editable region in the design-time view of the control.

SetViewFlags(ViewFlags, bool)

Assigns the specified bitwise System.Web.UI.Design.ViewFlags enumeration to the specified flag value.