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

File:DesignerHelper
Purpose:General purpose support routines for Visual Designer
enhancements
Syntax:Static methods only, private constructor to disallow
instance creation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue Jun 01 15:51:45 CEST 2010
Notes:This file is intended for GUI for .NET only



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-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:46:20