Top Method Summary
Options Name Purpose
CHARACTER DesignerSafeName (character) Returns a name (for a control or component) that compilies with the supported component names in the Visual Designer
System.ComponentModel.Design.IDesigner FindDesigner (IComponent) Locates the IDesigner for the component
RaiseComponentChanged (IComponent, character, Object, Object) Raises the ComponentChanged Event
RefreshPropertyGrid (Component) Refreshes the PropertyGrid of a Component in the Visual Designer

Top Constructor Summary
Options Name Purpose
DesignerHelper () Protected default constructor.


Method Detail
Top

CHARACTER DesignerSafeName (character)

Purpose: Returns a name (for a control or component) that compilies with the
supported component names in the Visual Designer
Notes: Replaces all characters outside of A-Z, a-z and 0-9 with _
First character needs to be a alpha character, no _

Parameters:
pcName CHARACTER
The name to turn into a valid component name
Returns CHARACTER
The fixed component name
Top

System.ComponentModel.Design.IDesigner FindDesigner (IComponent)

Purpose: Locates the IDesigner for the component
Notes:

Parameters:
poComponent System.ComponentModel.IComponent
The reference to an IComponent
Returns System.ComponentModel.Design.IDesigner
The IDesigner associated with the Component
Top

RaiseComponentChanged (IComponent, character, Object, Object)

Purpose: Raises the ComponentChanged Event
Notes:

Parameters:
poComponent System.ComponentModel.IComponent
The reference to the IComponent
pcPropertyName CHARACTER
The name of the property the changed the value
poOldValue System.Object
The old property value
poNewValue System.Object
The new property value
Top

RefreshPropertyGrid (Component)

Purpose: Refreshes the PropertyGrid of a Component in the Visual Designer
Notes: Actually de-selects and selects the property using the
ISelectionService

Parameters:
poComponent System.ComponentModel.Component
The reference to the Component for which the property grid should be refreshed


Constructor Detail
Top

DesignerHelper ()

Purpose: Protected default constructor.
Notes: There's no need to create instances of the helper classes



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