Namespace: Consultingwerk.SmartComponents.Base
Class 
SmartComponent Copy to Clipboard
Parent classes:
Consultingwerk.SmartComponents.ComponentBase

Inherits: Consultingwerk.SmartComponents.ComponentBase
Implements: System.ComponentModel.ICustomTypeDescriptor, Consultingwerk.SmartComponents.IHasDesignerVerbs
Inherited by: Consultingwerk.SmartComponents.Implementation.SmartDesignerSupportComponent Consultingwerk.SmartComponents.Implementation.SmartRadRibbonBarController Consultingwerk.SmartComponents.Base.SmartDataAdapter Consultingwerk.SmartComponents.Implementation.SmartDataObjectAdapter Consultingwerk.SmartComponents.Implementation.SmartTempTableAdapter Consultingwerk.SmartComponents.Base.SmartDatasetAdapter Consultingwerk.SmartComponents.Implementation.SmartDatasetChildAdapter Consultingwerk.SmartComponents.Implementation.SmartBusinessEntityAdapter Consultingwerk.SmartComponents.Tools.OERABusinessEntityTester.SmartBusinessEntityAdapterTester

File:SmartComponent
Purpose:Base class for custom Component's in the SmartComponent
Library Framework.
Description:The SmartComponent inherits from the
Consultingwerk.SmartComponents.ComponentBase class. This
base class defines the "Genius" icon for the toolbox palette
and makes sure that the Component get's added to the
component container (.NET Visual Designer)
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue May 26 22:42:30 CEST 2009



Top Method Summary
Options Name Purpose
CreateVerbs () Creates Designer Verbs based on the DesignerVerbs property
System.ComponentModel.AttributeCollection GetAttributes () Returns a collection of custom attributes for this instance of a component.
CHARACTER GetClassName () Returns the class name of this instance of a component.
CHARACTER GetComponentName () Returns the name of this instance of a component.
System.ComponentModel.TypeConverter GetConverter () Returns a type converter for this instance of a component.
System.ComponentModel.EventDescriptor GetDefaultEvent () Returns the default event for this instance of a component.
System.ComponentModel.PropertyDescriptor GetDefaultProperty () Returns the default property for this instance of a component.
System.Object GetEditor (Type) Returns an editor of the specified type for this instance of a component.
System.ComponentModel.EventDescriptorCollection GetEvents () Returns the events for this instance of a component.
System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[]) Returns the events for this instance of a component using the specified attribute array as a filter.
System.ComponentModel.PropertyDescriptorCollection GetProperties () Returns the properties for this instance of a component.
System.ComponentModel.PropertyDescriptorCollection GetProperties (Attribute[]) Returns the properties for this instance of a component using the attribute array as a filter.
System.Object GetPropertyOwner (PropertyDescriptor) Returns an object that contains the property described by the specified property descriptor.
OnVerbClicked (character) Event Handler method for Designer Verbs

Top Constructor Summary
Options Name Purpose
SmartComponent () Constructor of the SmartComponent class. Set's the DesignTime property using the LicenseManager.
SmartComponent (IContainer) Constructor of the SmartComponent class. Set's the DesignTime property using the LicenseManager.

Top Property Summary
Options Name Purpose
CHARACTER BindableProperties
CHARACTER CategorizedProperties
CHARACTER CategoryProperties
CHARACTER DescribedProperties
CHARACTER DescriptionProperties
LOGICAL DesignerHostLoading
CHARACTER DesignerVerbs
CHARACTER DesignerVisibilityAttributes
CHARACTER DesignerVisibilityProperties
LOGICAL DesignTime
LOGICAL DesingerHostLoading
CHARACTER HiddenProperties
CHARACTER NonBrowsableProperties


Method Detail
Top

CreateVerbs ()

Purpose: Creates Designer Verbs based on the DesignerVerbs property
Notes:

Top

System.ComponentModel.AttributeCollection GetAttributes ()

Purpose: Returns a collection of custom attributes for this instance of a
component.
Notes:

Returns System.ComponentModel.AttributeCollection
The System.ComponentModel.AttributeCollection describing the types attributes
Top

CHARACTER GetClassName ()

Purpose: Returns the class name of this instance of a component.
Notes:

Returns CHARACTER
The class name of the Component
Top

CHARACTER GetComponentName ()

Purpose: Returns the name of this instance of a component.
Notes:

Returns CHARACTER
The Component Name of this instance
Top

System.ComponentModel.TypeConverter GetConverter ()

Purpose: Returns a type converter for this instance of a component.
Notes:

Returns System.ComponentModel.TypeConverter
The System.ComponentModel.TypeConverter for this instance of a component.
Top

System.ComponentModel.EventDescriptor GetDefaultEvent ()

Purpose: Returns the default event for this instance of a component.
Notes:

Returns System.ComponentModel.EventDescriptor
The System.ComponentModel.EventDescriptor for the default event of this component
Top

System.ComponentModel.PropertyDescriptor GetDefaultProperty ()

Purpose: Returns the default property for this instance of a component.
Notes:

Returns System.ComponentModel.PropertyDescriptor
The System.ComponentModel.PropertyDescriptor for the default property of the component
Top

System.Object GetEditor (Type)

Purpose: Returns an editor of the specified type for this instance of a
component.
Notes:

Parameters:
editorBaseType System.Type
A System.Type that represents the editor for this object.
Returns System.Object
The reference to the Editor of the type of the component instance
Top

System.ComponentModel.EventDescriptorCollection GetEvents ()

Purpose: Returns the events for this instance of a component.
Notes:

Returns System.ComponentModel.EventDescriptorCollection
The System.ComponentModel.EventDescriptorCollection describing the events of the component
Top

System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[])

Purpose: Returns the events for this instance of a component using the
specified attribute array as a filter.
Notes:

Parameters:
attributes System.Attribute[]
A System.Attribute[] that is used as a filter.
Returns System.ComponentModel.EventDescriptorCollection
The System.ComponentModel.EventDescriptorCollection describing the events of the component
Top

System.ComponentModel.PropertyDescriptorCollection GetProperties ()

Purpose: Returns the properties for this instance of a component.
Notes:

Returns System.ComponentModel.PropertyDescriptorCollection
A System.ComponentModel.PropertyDescriptorCollection that represents the properties for this component instance.
Top

System.ComponentModel.PropertyDescriptorCollection GetProperties (Attribute[])

Purpose: Returns the properties for this instance of a component using the
attribute array as a filter.
Notes:

Parameters:
attributes System.Attribute[]
A System.Attribute[] that is used as a filter.
Returns System.ComponentModel.PropertyDescriptorCollection
A System.ComponentModel.PropertyDescriptorCollection that represents the properties for this component instance.
Top

System.Object GetPropertyOwner (PropertyDescriptor)

Purpose: Returns an object that contains the property described by the
specified property descriptor.
Notes:

Parameters:
pd System.ComponentModel.PropertyDescriptor
A System.ComponentModel.PropertyDescriptor that represents the property whose owner is to be found.
Returns System.Object
An System.Object that represents the owner of the specified property.
Top

OnVerbClicked (character)

Purpose: Event Handler method for Designer Verbs
Notes: This method is intended to be overridden

Parameters:
pcVerbText CHARACTER
The label of the verb the developer clicked on in the Visual Designer


Constructor Detail
Top

SmartComponent ()

Purpose: Constructor of the SmartComponent class. Set's the
DesignTime property using the LicenseManager.
Notes: According to
http://dotnetfacts.blogspot.com/2009/01/identifying-run-time-and-design-mode.html
that is only possible during the constructor of the class.

Top

SmartComponent (IContainer)

Purpose: Constructor of the SmartComponent class. Set's the
DesignTime property using the LicenseManager.
Notes: According to
http://dotnetfacts.blogspot.com/2009/01/identifying-run-time-and-design-mode.html
that is only possible during the constructor of the class.

Parameters:
poContainer System.ComponentModel.IContainer
The IContainer to add the current BindingSource to.


Property Detail
Top

CHARACTER BindableProperties


Returns CHARACTER
Top

CHARACTER CategorizedProperties


Returns CHARACTER
Top

CHARACTER CategoryProperties


Returns CHARACTER
Top

CHARACTER DescribedProperties


Returns CHARACTER
Top

CHARACTER DescriptionProperties


Returns CHARACTER
Top

LOGICAL DesignerHostLoading


Returns LOGICAL
Top

CHARACTER DesignerVerbs


Returns CHARACTER
Top

CHARACTER DesignerVisibilityAttributes


Returns CHARACTER
Top

CHARACTER DesignerVisibilityProperties


Returns CHARACTER
Top

LOGICAL DesignTime


Returns LOGICAL
Top

LOGICAL DesingerHostLoading


Returns LOGICAL
Top

CHARACTER HiddenProperties


Returns CHARACTER
Top

CHARACTER NonBrowsableProperties


Returns CHARACTER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:23:06