DataListDesigner.Initialize Method (IComponent)

 

Initializes the designer with the specified component.

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

public override void Initialize(
	IComponent component
)

Parameters

component
Type: System.ComponentModel.IComponent

The control element being designed.

The following code example shows how to override the Initialize method to ensure that the designer is initialized only with instances of the SimpleDataList class.

This code example is part of a larger example provided for the DataListDesigner class.

public override void Initialize(IComponent component)
{
    simpleGView = (SimpleGridView)component;
    base.Initialize(component);
}

.NET Framework
Available since 1.1
Return to top
Show: