This documentation is archived and is not being maintained.

IComponentDesignerStateService.SetState Method

Sets a state item specified by the key for the given component.

Namespace: System.ComponentModel.Design
Assembly: System.Design (in

void SetState (
	IComponent component,
	string key,
	Object value
void SetState (
	IComponent component, 
	String key, 
	Object value
function SetState (
	component : IComponent, 
	key : String, 
	value : Object
Not applicable.



The component for which to set the designer state item.


The name of the designer state item.


The designer state item for component.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0