Namespace: Consultingwerk.Util
Class 
DesignerHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

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



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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PROTECTED DesignerHelper ()

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



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:23:37