Component Property
.NET Framework Class Library
ComponentDesigner..::.Component Property

Gets the component this designer is designing.

Namespace:  System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)
Visual Basic (Declaration)
Public ReadOnly Property Component As IComponent
Visual Basic (Usage)
Dim instance As ComponentDesigner
Dim value As IComponent

value = instance.Component
C#
public IComponent Component { get; }
Visual C++
public:
virtual property IComponent^ Component {
    IComponent^ get () sealed;
}
JScript
public final function get Component () : IComponent

Property Value

Type: System.ComponentModel..::.IComponent
The component managed by the designer.

Implements

IDesigner..::.Component

The Initialize method of ComponentDesigner sets this property.

NoteNote:

When overriding the Initialize method, be sure to call the base class Initialize method before using this property.

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

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

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
Page view tracker