TemplatedControlDesigner TemplatedControlDesigner TemplatedControlDesigner TemplatedControlDesigner Class

Definition

Extends design-time behavior for template-based server controls.

public ref class TemplatedControlDesigner abstract : System::Web::UI::Design::ControlDesigner
public abstract class TemplatedControlDesigner : System.Web.UI.Design.ControlDesigner
type TemplatedControlDesigner = class
    inherit ControlDesigner
Public MustInherit Class TemplatedControlDesigner
Inherits ControlDesigner
Inheritance
Derived

Examples

The following code example demonstrates how to create a control designer class that uses templates and derives from the ControlDesigner class.

To run the example, compile the code, and then in a design host such as Visual Studio 2005, view the page in Design view. Select the control, click the action list to select a template to modify, and then use the drag-and-drop feature to move controls into the template.

Note

Your project must have a reference to the System.Design assembly.

using System;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.Design;

namespace ASPNet.Design.Samples
{
    // Set an attribute reference to the designer, and define 
    // the HTML markup that the toolbox will write into the source.
    [Designer(typeof(TemplateGroupsSampleDesigner)),
        ToolboxData("<{0}:TemplateGroupsSample runat=server></{0}:TemplateGroupsSample>")]
    public sealed class TemplateGroupsSample : WebControl, INamingContainer
    {
        // Field for the templates
        private ITemplate[] _templates;

        // Constructor
        public TemplateGroupsSample()
        {
            _templates = new ITemplate[4];
        }

        // For each template property, set the designer attributes 
        // so the property does not appear in the property grid, but 
        // changes to the template are persisted in the control.
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template1
        {
            get { return _templates[0]; }
            set { _templates[0] = value; }
        }
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template2
        {
            get { return _templates[1]; }
            set { _templates[1] = value; }
        }
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template3
        {
            get { return _templates[2]; }
            set { _templates[2] = value; }
        }
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template4
        {
            get { return _templates[3]; }
            set { _templates[3] = value; }
        }

        protected override void CreateChildControls()
        {
            // Instantiate each template inside a panel
            // then add the panel to the Controls collection
            for (int i = 0; i < 4; i++)
            {
                Panel pan = new Panel();
                _templates[i].InstantiateIn(pan);
                this.Controls.Add(pan);
            }
        }
    }

    // Designer for the TemplateGroupsSample control
    public class TemplateGroupsSampleDesigner : ControlDesigner
    {
        TemplateGroupCollection col = null;

        public override void Initialize(IComponent component)
        {
            // Initialize the base
            base.Initialize(component);
            // Turn on template editing
            SetViewFlags(ViewFlags.TemplateEditing, true);
        }

        // Add instructions to the placeholder view of the control
        public override string GetDesignTimeHtml()
        {
            return CreatePlaceHolderDesignTimeHtml("Click here and use " +
                "the task menu to edit the templates.");
        }

        public override TemplateGroupCollection TemplateGroups
        {
            get
            {

                if (col == null)
                {
                    // Get the base collection
                    col = base.TemplateGroups;

                    // Create variables
                    TemplateGroup tempGroup;
                    TemplateDefinition tempDef;
                    TemplateGroupsSample ctl;

                    // Get reference to the component as TemplateGroupsSample
                    ctl = (TemplateGroupsSample)Component;

                    // Create a TemplateGroup
                    tempGroup = new TemplateGroup("Template Set A");

                    // Create a TemplateDefinition
                    tempDef = new TemplateDefinition(this, "Template A1", 
                        ctl, "Template1", true);

                    // Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef);

                    // Create another TemplateDefinition
                    tempDef = new TemplateDefinition(this, "Template A2", 
                        ctl, "Template2", true);

                    // Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef);

                    // Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup);

                    // Create another TemplateGroup and populate it
                    tempGroup = new TemplateGroup("Template Set B");
                    tempDef = new TemplateDefinition(this, "Template B1", 
                        ctl, "Template3", true);
                    tempGroup.AddTemplateDefinition(tempDef);
                    tempDef = new TemplateDefinition(this, "Template B2", 
                        ctl, "Template4", true);
                    tempGroup.AddTemplateDefinition(tempDef);

                    // Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup);
                }

                return col;
            }
        }

        // Do not allow direct resizing unless in TemplateMode
        public override bool AllowResize
        {
            get
            {
                if (this.InTemplateMode)
                    return true;
                else
                    return false;
            }
        }
    }
}
Imports Microsoft.VisualBasic
Imports System
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.Design

Namespace ASPNet.Design.Samples

    ' Set an attribute reference to the designer, and define 
    ' the HTML markup that the toolbox will write into the source.
    <Designer(GetType(TemplateGroupsSampleDesigner)), _
        ToolboxData("<{0}:TemplateGroupsSample runat=server></{0}:TemplateGroupsSample>")> _
    Public Class TemplateGroupsSample
        Inherits WebControl
        Implements INamingContainer

        ' Field for the templates
        Private _templates() As ITemplate

        ' Constructor
        Public Sub New()
            ReDim _templates(4)
        End Sub

        ' For each template property, set the designer attributes 
        ' so the property does not appear in the property grid, but 
        ' changes to the template are persisted in the control.
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template1() As ITemplate
            Get
                Return _templates(0)
            End Get
            Set(ByVal Value As ITemplate)
                _templates(0) = Value
            End Set
        End Property
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template2() As ITemplate
            Get
                Return _templates(1)
            End Get
            Set(ByVal Value As ITemplate)
                _templates(1) = Value
            End Set
        End Property
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template3() As ITemplate
            Get
                Return _templates(2)
            End Get
            Set(ByVal Value As ITemplate)
                _templates(2) = Value
            End Set
        End Property
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template4() As ITemplate
            Get
                Return _templates(3)
            End Get
            Set(ByVal Value As ITemplate)
                _templates(3) = Value
            End Set
        End Property

        Protected Overrides Sub CreateChildControls()
            ' Instantiate the template inside the panel
            ' then add the panel to the Controls collection
            Dim i As Integer

            For i = 0 To 3
                Dim pan As New Panel()
                _templates(i).InstantiateIn(pan)
                Me.Controls.Add(pan)
            Next
        End Sub

    End Class

    ' Designer for the TemplateGroupsSample class
    Public Class TemplateGroupsSampleDesigner
        Inherits System.Web.UI.Design.ControlDesigner

        Private col As TemplateGroupCollection = Nothing

        Public Overrides Sub Initialize(ByVal Component As IComponent)
            ' Initialize the base
            MyBase.Initialize(Component)
            ' Turn on template editing
            SetViewFlags(ViewFlags.TemplateEditing, True)
        End Sub

        ' Add instructions to the placeholder view of the control
        Public Overloads Overrides Function GetDesignTimeHtml() As String
            Return CreatePlaceHolderDesignTimeHtml("Click here and use " & _
                "the task menu to edit the templates.")
        End Function

        Public Overrides ReadOnly Property TemplateGroups() As TemplateGroupCollection
            Get
                If IsNothing(col) Then
                    ' Get the base collection
                    col = MyBase.TemplateGroups

                    ' Create variables
                    Dim tempGroup As TemplateGroup
                    Dim tempDef As TemplateDefinition
                    Dim ctl As TemplateGroupsSample

                    ' Get reference to the component as TemplateGroupsSample
                    ctl = CType(Component, TemplateGroupsSample)

                    ' Create a TemplateGroup
                    tempGroup = New TemplateGroup("Template Set A")

                    ' Create a TemplateDefinition
                    tempDef = New TemplateDefinition(Me, "Template A1", ctl, "Template1", True)

                    ' Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef)

                    ' Create another TemplateDefinition
                    tempDef = New TemplateDefinition(Me, "Template A2", ctl, "Template2", True)

                    ' Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef)

                    ' Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup)

                    ' Create another TemplateGroup and populate it
                    tempGroup = New TemplateGroup("Template Set B")
                    tempDef = New TemplateDefinition(Me, "Template B1", ctl, "Template3", True)
                    tempGroup.AddTemplateDefinition(tempDef)
                    tempDef = New TemplateDefinition(Me, "Template B2", ctl, "Template4", True)
                    tempGroup.AddTemplateDefinition(tempDef)

                    ' Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup)
                End If

                Return col
            End Get
        End Property

        ' Do not allow direct resizing unless in TemplateMode
        Public Overrides ReadOnly Property AllowResize() As Boolean
            Get
                If Me.InTemplateMode Then
                    Return True
                Else
                    Return False
                End If
            End Get
        End Property
    End Class
End Namespace
<%@ Page Language="VB" %>
<%@ Register TagPrefix="aspSample" 
    Namespace="ASPNet.Design.Samples" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
       <aspSample:TemplateGroupsSample runat="server" ID="TGSample1">
       </aspSample:TemplateGroupsSample>
    
    </div>
    </form>
</body>
</html>

Notes to Inheritors

Although this class is not obsolete, it is unnecessary because template-editing features have been built into ControlDesigner.

Constructors

TemplatedControlDesigner() TemplatedControlDesigner() TemplatedControlDesigner() TemplatedControlDesigner()

Initializes a new instance of the TemplatedControlDesigner class.

Properties

ActionLists ActionLists ActionLists ActionLists

Gets the action list collection for the control designer.

(Inherited from ControlDesigner)
ActiveTemplateEditingFrame ActiveTemplateEditingFrame ActiveTemplateEditingFrame ActiveTemplateEditingFrame

Gets the active template editing frame.

AllowResize AllowResize AllowResize AllowResize

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

(Inherited from ControlDesigner)
AssociatedComponents AssociatedComponents AssociatedComponents AssociatedComponents

Gets the collection of components associated with the component managed by the designer.

(Inherited from ComponentDesigner)
AutoFormats AutoFormats AutoFormats AutoFormats

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

(Inherited from ControlDesigner)
Behavior Behavior Behavior Behavior

Gets or sets the DHTML behavior that is associated with the designer.

(Inherited from HtmlControlDesigner)
CanEnterTemplateMode CanEnterTemplateMode CanEnterTemplateMode CanEnterTemplateMode

Gets a value indicating whether or not this designer will allow the viewing or editing of templates.

Component Component Component Component

Gets the component this designer is designing.

(Inherited from ComponentDesigner)
DataBindings DataBindings DataBindings DataBindings

Gets the data bindings collection for the current control.

(Inherited from HtmlControlDesigner)
DataBindingsEnabled DataBindingsEnabled DataBindingsEnabled DataBindingsEnabled

Gets a value indicating whether the designer allows data binding.

DesignerState DesignerState DesignerState DesignerState

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

(Inherited from ControlDesigner)
DesignTimeElement DesignTimeElement DesignTimeElement DesignTimeElement

Gets the design-time object representing the control that is associated with the HtmlControlDesigner object on the design surface.

(Inherited from HtmlControlDesigner)
DesignTimeElementView DesignTimeElementView DesignTimeElementView DesignTimeElementView

Gets the view-control object for the control designer.

(Inherited from ControlDesigner)
DesignTimeHtmlRequiresLoadComplete DesignTimeHtmlRequiresLoadComplete DesignTimeHtmlRequiresLoadComplete DesignTimeHtmlRequiresLoadComplete

Gets a value indicating whether the design host must finish loading before the GetDesignTimeHtml method can be called.

(Inherited from ControlDesigner)
Expressions Expressions Expressions Expressions

Gets the expression bindings for the current control at design time.

(Inherited from HtmlControlDesigner)
HidePropertiesInTemplateMode HidePropertiesInTemplateMode HidePropertiesInTemplateMode HidePropertiesInTemplateMode

Gets a value indicating whether the properties of the control will be hidden when the control is placed into template editing mode.

ID ID ID ID

Gets or sets the ID string for the control.

(Inherited from ControlDesigner)
InheritanceAttribute InheritanceAttribute InheritanceAttribute InheritanceAttribute

Gets an attribute that indicates the type of inheritance of the associated component.

(Inherited from ComponentDesigner)
Inherited Inherited Inherited Inherited

Gets a value indicating whether this component is inherited.

(Inherited from ComponentDesigner)
InTemplateMode InTemplateMode InTemplateMode InTemplateMode

Gets a value indicating whether the designer document is in template mode.

IsDirty IsDirty IsDirty IsDirty

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

(Inherited from ControlDesigner)
ITreeDesigner.Children ITreeDesigner.Children ITreeDesigner.Children ITreeDesigner.Children

For a description of this member, see the Children property.

(Inherited from ComponentDesigner)
ITreeDesigner.Parent ITreeDesigner.Parent ITreeDesigner.Parent ITreeDesigner.Parent

For a description of this member, see the Parent property.

(Inherited from ComponentDesigner)
ParentComponent ParentComponent ParentComponent ParentComponent

Gets the parent component for this designer.

(Inherited from ComponentDesigner)
ReadOnly ReadOnly ReadOnly ReadOnly

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

(Inherited from ControlDesigner)
RootDesigner RootDesigner RootDesigner RootDesigner

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

(Inherited from ControlDesigner)
ShadowProperties ShadowProperties ShadowProperties ShadowProperties

Gets a collection of property values that override user settings.

(Inherited from ComponentDesigner)
ShouldCodeSerialize ShouldCodeSerialize ShouldCodeSerialize ShouldCodeSerialize

Gets or sets a value indicating whether to create a field declaration for the control in the code-behind file for the current design document during serialization.

(Inherited from HtmlControlDesigner)
Tag Tag Tag Tag

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

(Inherited from ControlDesigner)
TemplateGroups TemplateGroups TemplateGroups TemplateGroups

Gets a collection of template groups, each containing a template definition.

UsePreviewControl UsePreviewControl UsePreviewControl UsePreviewControl

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

(Inherited from ControlDesigner)
Verbs Verbs Verbs Verbs

Gets the design-time verbs supported by the component that is associated with the designer.

(Inherited from ComponentDesigner)
ViewControl ViewControl ViewControl ViewControl

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

(Inherited from ControlDesigner)
ViewControlCreated ViewControlCreated ViewControlCreated ViewControlCreated

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

(Inherited from ControlDesigner)
Visible Visible Visible Visible

Gets a value that indicates whether the control is visible at design time.

(Inherited from ControlDesigner)

Methods

CreateErrorDesignTimeHtml(String) CreateErrorDesignTimeHtml(String) CreateErrorDesignTimeHtml(String) CreateErrorDesignTimeHtml(String)

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

(Inherited from ControlDesigner)
CreateErrorDesignTimeHtml(String, Exception) CreateErrorDesignTimeHtml(String, Exception) CreateErrorDesignTimeHtml(String, Exception) CreateErrorDesignTimeHtml(String, Exception)

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

(Inherited from ControlDesigner)
CreatePlaceHolderDesignTimeHtml() CreatePlaceHolderDesignTimeHtml() CreatePlaceHolderDesignTimeHtml() CreatePlaceHolderDesignTimeHtml()

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

(Inherited from ControlDesigner)
CreatePlaceHolderDesignTimeHtml(String) CreatePlaceHolderDesignTimeHtml(String) CreatePlaceHolderDesignTimeHtml(String) CreatePlaceHolderDesignTimeHtml(String)

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

(Inherited from ControlDesigner)
CreateTemplateEditingFrame(TemplateEditingVerb) CreateTemplateEditingFrame(TemplateEditingVerb) CreateTemplateEditingFrame(TemplateEditingVerb) CreateTemplateEditingFrame(TemplateEditingVerb)

When overridden in a derived class, creates a template editing frame for the specified verb.

CreateViewControl() CreateViewControl() CreateViewControl() CreateViewControl()

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

(Inherited from ControlDesigner)
Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the ComponentDesigner.

(Inherited from ComponentDesigner)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources that are used by the HtmlControlDesigner object and optionally releases the managed resources.

(Inherited from HtmlControlDesigner)
DoDefaultAction() DoDefaultAction() DoDefaultAction() DoDefaultAction()

Creates a method signature in the source code file for the default event on the component and navigates the user's cursor to that location.

(Inherited from ComponentDesigner)
EnterTemplateMode(ITemplateEditingFrame) EnterTemplateMode(ITemplateEditingFrame) EnterTemplateMode(ITemplateEditingFrame) EnterTemplateMode(ITemplateEditingFrame)

Opens a particular template frame object for editing in the designer.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExitTemplateMode(Boolean, Boolean, Boolean) ExitTemplateMode(Boolean, Boolean, Boolean) ExitTemplateMode(Boolean, Boolean, Boolean) ExitTemplateMode(Boolean, Boolean, Boolean)

Closes the currently active template editing frame after saving any relevant changes.

GetBounds() GetBounds() GetBounds() GetBounds()

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

(Inherited from ControlDesigner)
GetCachedTemplateEditingVerbs() GetCachedTemplateEditingVerbs() GetCachedTemplateEditingVerbs() GetCachedTemplateEditingVerbs()

Gets the cached template editing verbs.

GetDesignTimeHtml() GetDesignTimeHtml() GetDesignTimeHtml() GetDesignTimeHtml()

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

(Inherited from ControlDesigner)
GetDesignTimeHtml(DesignerRegionCollection) GetDesignTimeHtml(DesignerRegionCollection) GetDesignTimeHtml(DesignerRegionCollection) GetDesignTimeHtml(DesignerRegionCollection)

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

(Inherited from ControlDesigner)
GetEditableDesignerRegionContent(EditableDesignerRegion) GetEditableDesignerRegionContent(EditableDesignerRegion) GetEditableDesignerRegionContent(EditableDesignerRegion) GetEditableDesignerRegionContent(EditableDesignerRegion)

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

(Inherited from ControlDesigner)
GetEmptyDesignTimeHtml() GetEmptyDesignTimeHtml() GetEmptyDesignTimeHtml() GetEmptyDesignTimeHtml()

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

(Inherited from ControlDesigner)
GetErrorDesignTimeHtml(Exception) GetErrorDesignTimeHtml(Exception) GetErrorDesignTimeHtml(Exception) GetErrorDesignTimeHtml(Exception)

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

(Inherited from ControlDesigner)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPersistenceContent() GetPersistenceContent() GetPersistenceContent() GetPersistenceContent()

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

(Inherited from ControlDesigner)
GetPersistInnerHtml() GetPersistInnerHtml() GetPersistInnerHtml() GetPersistInnerHtml()

Gets the markup to persist for the content that is in the associated server control runtime.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Attempts to retrieve the specified type of service from the design mode site of the designer's component.

(Inherited from ComponentDesigner)
GetTemplateContainerDataItemProperty(String) GetTemplateContainerDataItemProperty(String) GetTemplateContainerDataItemProperty(String) GetTemplateContainerDataItemProperty(String)

Gets the data item property of the template's container.

GetTemplateContainerDataSource(String) GetTemplateContainerDataSource(String) GetTemplateContainerDataSource(String) GetTemplateContainerDataSource(String)

Gets the data source of the template's container.

GetTemplateContent(ITemplateEditingFrame, String, Boolean) GetTemplateContent(ITemplateEditingFrame, String, Boolean) GetTemplateContent(ITemplateEditingFrame, String, Boolean) GetTemplateContent(ITemplateEditingFrame, String, Boolean)

When overridden in a derived class, gets the template's content.

GetTemplateEditingVerbs() GetTemplateEditingVerbs() GetTemplateEditingVerbs() GetTemplateEditingVerbs()

Gets the template editing verbs available to the designer.

GetTemplateFromText(String) GetTemplateFromText(String) GetTemplateFromText(String) GetTemplateFromText(String)

Creates a template from the specified text.

GetTemplatePropertyParentType(String) GetTemplatePropertyParentType(String) GetTemplatePropertyParentType(String) GetTemplatePropertyParentType(String)

Gets the type of the parent of the template property.

GetTextFromTemplate(ITemplate) GetTextFromTemplate(ITemplate) GetTextFromTemplate(ITemplate) GetTextFromTemplate(ITemplate)

Gets a string of text that represents the specified template.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetViewRendering() GetViewRendering() GetViewRendering() GetViewRendering()

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

(Inherited from ControlDesigner)
Initialize(IComponent) Initialize(IComponent) Initialize(IComponent) Initialize(IComponent)

Initializes the designer and loads the specified component.

InitializeExistingComponent(IDictionary) InitializeExistingComponent(IDictionary) InitializeExistingComponent(IDictionary) InitializeExistingComponent(IDictionary)

Reinitializes an existing component.

(Inherited from ComponentDesigner)
InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary) InitializeNewComponent(IDictionary)

Initializes a newly created component.

(Inherited from ComponentDesigner)
InitializeNonDefault() InitializeNonDefault() InitializeNonDefault() InitializeNonDefault()

Initializes the settings for an imported component that is already initialized to settings other than the defaults.

(Inherited from ComponentDesigner)
Invalidate() Invalidate() Invalidate() Invalidate()

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

(Inherited from ControlDesigner)
Invalidate(Rectangle) Invalidate(Rectangle) Invalidate(Rectangle) Invalidate(Rectangle)

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

(Inherited from ControlDesigner)
InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner) InvokeGetInheritanceAttribute(ComponentDesigner)

Gets the InheritanceAttribute of the specified ComponentDesigner.

(Inherited from ComponentDesigner)
IsPropertyBound(String) IsPropertyBound(String) IsPropertyBound(String) IsPropertyBound(String)

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

(Inherited from ControlDesigner)
Localize(IDesignTimeResourceWriter) Localize(IDesignTimeResourceWriter) Localize(IDesignTimeResourceWriter) Localize(IDesignTimeResourceWriter)

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

(Inherited from ControlDesigner)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnAutoFormatApplied(DesignerAutoFormat) OnAutoFormatApplied(DesignerAutoFormat) OnAutoFormatApplied(DesignerAutoFormat) OnAutoFormatApplied(DesignerAutoFormat)

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

(Inherited from ControlDesigner)
OnBehaviorAttached() OnBehaviorAttached() OnBehaviorAttached() OnBehaviorAttached()

Provides an opportunity to perform additional processing when a behavior is attached to the designer.

OnBehaviorDetaching() OnBehaviorDetaching() OnBehaviorDetaching() OnBehaviorDetaching()

Called when a behavior disassociates from the element.

(Inherited from HtmlControlDesigner)
OnBindingsCollectionChanged(String) OnBindingsCollectionChanged(String) OnBindingsCollectionChanged(String) OnBindingsCollectionChanged(String)

Called when the data-binding collection changes.

(Inherited from ControlDesigner)
OnClick(DesignerRegionMouseEventArgs) OnClick(DesignerRegionMouseEventArgs) OnClick(DesignerRegionMouseEventArgs) OnClick(DesignerRegionMouseEventArgs)

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

(Inherited from ControlDesigner)
OnComponentChanged(Object, ComponentChangedEventArgs) OnComponentChanged(Object, ComponentChangedEventArgs) OnComponentChanged(Object, ComponentChangedEventArgs) OnComponentChanged(Object, ComponentChangedEventArgs)

Delegate to handle the component changed event.

OnComponentChanging(Object, ComponentChangingEventArgs) OnComponentChanging(Object, ComponentChangingEventArgs) OnComponentChanging(Object, ComponentChangingEventArgs) OnComponentChanging(Object, ComponentChangingEventArgs)

Represents the method that will handle the ComponentChanging event for the associated control.

(Inherited from ControlDesigner)
OnControlResize() OnControlResize() OnControlResize() OnControlResize()

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

(Inherited from ControlDesigner)
OnPaint(PaintEventArgs) OnPaint(PaintEventArgs) OnPaint(PaintEventArgs) OnPaint(PaintEventArgs)

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

(Inherited from ControlDesigner)
OnSetComponentDefaults() OnSetComponentDefaults() OnSetComponentDefaults() OnSetComponentDefaults()

Sets the default properties for the component.

(Inherited from ComponentDesigner)
OnSetParent() OnSetParent() OnSetParent() OnSetParent()

Provides an opportunity to perform additional processing when the parent of this designer is changed.

OnTemplateModeChanged() OnTemplateModeChanged() OnTemplateModeChanged() OnTemplateModeChanged()

Provides an opportunity to perform additional processing when the template mode is changed.

PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary) PostFilterAttributes(IDictionary)

Allows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PostFilterEvents(IDictionary) PostFilterEvents(IDictionary) PostFilterEvents(IDictionary) PostFilterEvents(IDictionary)

Allows a designer to change or remove items from the set of events that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PostFilterProperties(IDictionary) PostFilterProperties(IDictionary) PostFilterProperties(IDictionary) PostFilterProperties(IDictionary)

Allows a designer to change or remove items from the set of properties that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PreFilterAttributes(IDictionary) PreFilterAttributes(IDictionary) PreFilterAttributes(IDictionary) PreFilterAttributes(IDictionary)

Allows a designer to add to the set of attributes that it exposes through a TypeDescriptor.

(Inherited from ComponentDesigner)
PreFilterEvents(IDictionary) PreFilterEvents(IDictionary) PreFilterEvents(IDictionary) PreFilterEvents(IDictionary)

Sets the list of events that are exposed at design-time for the TypeDescriptor object for the component.

(Inherited from HtmlControlDesigner)
PreFilterProperties(IDictionary) PreFilterProperties(IDictionary) PreFilterProperties(IDictionary) PreFilterProperties(IDictionary)

Allows a designer to filter the set of member attributes the component it is designing through a TypeDescriptor object.

RaiseComponentChanged(MemberDescriptor, Object, Object) RaiseComponentChanged(MemberDescriptor, Object, Object) RaiseComponentChanged(MemberDescriptor, Object, Object) RaiseComponentChanged(MemberDescriptor, Object, Object)

Notifies the IComponentChangeService that this component has been changed.

(Inherited from ComponentDesigner)
RaiseComponentChanging(MemberDescriptor) RaiseComponentChanging(MemberDescriptor) RaiseComponentChanging(MemberDescriptor) RaiseComponentChanging(MemberDescriptor)

Notifies the IComponentChangeService that this component is about to be changed.

(Inherited from ComponentDesigner)
RaiseResizeEvent() RaiseResizeEvent() RaiseResizeEvent() RaiseResizeEvent()

Raises the OnControlResize() event.

(Inherited from ControlDesigner)
RegisterClone(Object, Object) RegisterClone(Object, Object) RegisterClone(Object, Object) RegisterClone(Object, Object)

Registers internal data in a cloned control.

(Inherited from ControlDesigner)
SaveActiveTemplateEditingFrame() SaveActiveTemplateEditingFrame() SaveActiveTemplateEditingFrame() SaveActiveTemplateEditingFrame()

Saves the active template editing frame.

SetEditableDesignerRegionContent(EditableDesignerRegion, String) SetEditableDesignerRegionContent(EditableDesignerRegion, String) SetEditableDesignerRegionContent(EditableDesignerRegion, String) SetEditableDesignerRegionContent(EditableDesignerRegion, String)

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

(Inherited from ControlDesigner)
SetRegionContent(EditableDesignerRegion, String) SetRegionContent(EditableDesignerRegion, String) SetRegionContent(EditableDesignerRegion, String) SetRegionContent(EditableDesignerRegion, String)

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

(Inherited from ControlDesigner)
SetTemplateContent(ITemplateEditingFrame, String, String) SetTemplateContent(ITemplateEditingFrame, String, String) SetTemplateContent(ITemplateEditingFrame, String, String) SetTemplateContent(ITemplateEditingFrame, String, String)

When overridden in a derived class, sets the specified template's content to the specified content.

SetViewFlags(ViewFlags, Boolean) SetViewFlags(ViewFlags, Boolean) SetViewFlags(ViewFlags, Boolean) SetViewFlags(ViewFlags, Boolean)

Assigns the specified bitwise ViewFlags enumeration to the specified flag value.

(Inherited from ControlDesigner)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
UpdateDesignTimeHtml() UpdateDesignTimeHtml() UpdateDesignTimeHtml() UpdateDesignTimeHtml()

Updates the design-time HTML.

Explicit Interface Implementations

IDesignerFilter.PostFilterAttributes(IDictionary) IDesignerFilter.PostFilterAttributes(IDictionary) IDesignerFilter.PostFilterAttributes(IDictionary) IDesignerFilter.PostFilterAttributes(IDictionary)

For a description of this member, see the PostFilterAttributes(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary) IDesignerFilter.PostFilterEvents(IDictionary) IDesignerFilter.PostFilterEvents(IDictionary) IDesignerFilter.PostFilterEvents(IDictionary)

For a description of this member, see the PostFilterEvents(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary) IDesignerFilter.PostFilterProperties(IDictionary) IDesignerFilter.PostFilterProperties(IDictionary) IDesignerFilter.PostFilterProperties(IDictionary)

For a description of this member, see the PostFilterProperties(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary) IDesignerFilter.PreFilterAttributes(IDictionary) IDesignerFilter.PreFilterAttributes(IDictionary) IDesignerFilter.PreFilterAttributes(IDictionary)

For a description of this member, see the PreFilterAttributes(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary) IDesignerFilter.PreFilterEvents(IDictionary) IDesignerFilter.PreFilterEvents(IDictionary) IDesignerFilter.PreFilterEvents(IDictionary)

For a description of this member, see the PreFilterEvents(IDictionary) method.

(Inherited from ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary) IDesignerFilter.PreFilterProperties(IDictionary) IDesignerFilter.PreFilterProperties(IDictionary) IDesignerFilter.PreFilterProperties(IDictionary)

For a description of this member, see the PreFilterProperties(IDictionary) method.

(Inherited from ComponentDesigner)

Applies to

See also