Namespace: Consultingwerk.Design.SmartComponents
Class 
BindingSourceFieldsControl Copy to Clipboard
Parent classes:
Inherits: Progress.Windows.UserControl
Implements: System.Drawing.Design.IToolboxService

File:BindingSourceFieldsControl
Purpose:Provides fields from a BindingSource as an IToolboxService
implementation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Tue Nov 09 23:46:44 CET 2010
Notes:http://msdn.microsoft.com/en-us/library/system.drawing.design.itoolboxservice(v=vs.80).aspx



Top Method Summary
Options Name Purpose
+ AddCreator (ToolboxItemCreatorCallback, character) Adds a new toolbox item creator for a specified data format.
+ AddCreator (ToolboxItemCreatorCallback, character, IDesignerHost) Adds a new toolbox item creator for a specified data format and designer host.
+ AddCustomToolboxItem (character, character, Type) Adds an Item to the Toolbox
+ AddLinkedToolboxItem (ToolboxItem, character, IDesignerHost) Adds the specified project-linked toolbox item to the toolbox in the specified category.
+ AddLinkedToolboxItem (ToolboxItem, IDesignerHost) Adds the specified project-linked toolbox item to the toolbox.
+ AddToolboxItem (ToolboxItem) Adds the specified toolbox item to the toolbox.
+ AddToolboxItem (ToolboxItem, character) Adds the specified toolbox item to the toolbox in the specified category.
+ System.Drawing.Design.ToolboxItem DeserializeToolboxItem (Object) Gets a toolbox item from the specified object that represents a toolbox item in serialized form.
+ System.Drawing.Design.ToolboxItem DeserializeToolboxItem (Object, IDesignerHost) Gets a toolbox item from the specified object that represents a toolbox item in serialized form, using the specified designer host.
+ System.Drawing.Design.ToolboxItem GetSelectedToolboxItem () Gets the currently selected toolbox item
+ System.Drawing.Design.ToolboxItem GetSelectedToolboxItem (IDesignerHost) Gets the currently selected toolbox item if it is available to all designers, or if it supports the specified designer.
+ System.Drawing.Design.ToolboxItemCollection GetToolboxItems () Gets the entire collection of toolbox items from the toolbox.
+ System.Drawing.Design.ToolboxItemCollection GetToolboxItems (character) Gets a collection of toolbox items from the toolbox that match the specified category.
+ System.Drawing.Design.ToolboxItemCollection GetToolboxItems (character, IDesignerHost) Gets the collection of toolbox items that are associated with the specified designer host and category from the toolbox.
+ System.Drawing.Design.ToolboxItemCollection GetToolboxItems (IDesignerHost) Gets the collection of toolbox items that are associated with the specified designer host from the toolbox.
# InitializeBindingSourceFields () Adds the fields of the BindingSource schema as objects to the Toolbox
- InitializeComponent () Initializes the Visual Design
+ InsertSeparator () Adds a separator to the ListView
+ LOGICAL IsSupported (Object, ICollection) Gets a value indicating whether the specified object which represents a serialized toolbox item matches the specified attributes.
+ LOGICAL IsSupported (Object, IDesignerHost) Gets a value indicating whether the specified object which represents a serialized toolbox item can be used by the specified designer host.
+ LOGICAL IsToolboxItem (Object) Gets a value indicating whether the specified object is a serialized toolbox item.
+ LOGICAL IsToolboxItem (Object, IDesignerHost) Gets a value indicating whether the specified object is a serialized toolbox item, using the specified designer host.
# OnLoad (EventArgs) Raises the Load event
+ RemoveCreator (character) Removes a previously added toolbox item creator of the specified data format.
+ RemoveCreator (character, IDesignerHost) Removes a previously added toolbox creator that is associated with the specified data format and the specified designer host.
+ RemoveToolboxItem (ToolboxItem) Removes the specified toolbox item from the toolbox.
+ RemoveToolboxItem (ToolboxItem, character) Removes the specified toolbox item from the toolbox.
+ SelectedToolboxItemUsed () Notifies the toolbox service that the selected tool has been used.
+ System.Object SerializeToolboxItem (ToolboxItem) Gets a serializable object that represents the specified toolbox item.
+ LOGICAL SetCursor () Sets the current application's cursor to a cursor that represents the currently selected tool.
+ SetSelectedToolboxItem (ToolboxItem) Selects the specified toolbox item.
- ultraListView1_MouseDown (Object, MouseEventArgs) Event handler for the MouseDown event of the ultraUltraView1

Top Constructor Summary
Options Name Purpose
+ BindingSourceFieldsControl () Constructor of the BindingSourceFieldsControl class

Top Property Summary
Options Name Purpose
+ Progress.Data.BindingSource BindingSource
+ System.Drawing.Design.CategoryNameCollection CategoryNames
+ Consultingwerk.Design.SmartComponents.IDesignerControl DesignerControl
+ System.ComponentModel.Design.IDesignerHost DesignerHost
+ CHARACTER SelectedCategory


Method Detail
Top

PUBLIC AddCreator (ToolboxItemCreatorCallback, character)

Purpose: Adds a new toolbox item creator for a specified data format.
Notes:

Parameters:
creator System.Drawing.Design.ToolboxItemCreatorCallback
A ToolboxItemCreatorCallback that can create a component when the toolbox item is invoked.
format0 CHARACTER
The data format that the creator handles.
Top

PUBLIC AddCreator (ToolboxItemCreatorCallback, character, IDesignerHost)

Purpose: Adds a new toolbox item creator for a specified data format and designer host.
Notes:

Parameters:
creator System.Drawing.Design.ToolboxItemCreatorCallback
A ToolboxItemCreatorCallback that can create a component when the toolbox item is invoked.
format0 CHARACTER
The data format that the creator handles.
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost that represents the designer host to associate with the creator.
Top

PUBLIC AddCustomToolboxItem (character, character, Type)

Purpose: Adds an Item to the Toolbox
Notes:

Parameters:
pcToolboxItemName CHARACTER
The name of the Toolbox Item
pcToolboxItemImage CHARACTER
The name of the image file to show on the toolbox
poType System.Type
The System.Type for the component to be added by the toolbox item
Top

PUBLIC AddLinkedToolboxItem (ToolboxItem, character, IDesignerHost)

Purpose: Adds the specified project-linked toolbox item to the toolbox in the specified category.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The linked ToolboxItem to add to the toolbox.
category CHARACTER
The toolbox item category to add the toolbox item to.
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost for the current design document.
Top

PUBLIC AddLinkedToolboxItem (ToolboxItem, IDesignerHost)

Purpose: Adds the specified project-linked toolbox item to the toolbox.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The linked ToolboxItem to add to the toolbox.
host System.ComponentModel.Design.IDesignerHost
The reference to the IDesignerHost implementation
Top

PUBLIC AddToolboxItem (ToolboxItem)

Purpose: Adds the specified toolbox item to the toolbox.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The ToolboxItem to add to the toolbox.
Top

PUBLIC AddToolboxItem (ToolboxItem, character)

Purpose: Adds the specified toolbox item to the toolbox in the specified category.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The ToolboxItem to add to the toolbox.
category CHARACTER
The toolbox item category to add the ToolboxItem to.
Top

PUBLIC System.Drawing.Design.ToolboxItem DeserializeToolboxItem (Object)

Purpose: Gets a toolbox item from the specified object that represents a
toolbox item in serialized form.
Notes:

Parameters:
serializedObject System.Object
The object that contains the ToolboxItem to retrieve.
Returns System.Drawing.Design.ToolboxItem
The ToolboxItem created from deserialization.
Top

PUBLIC System.Drawing.Design.ToolboxItem DeserializeToolboxItem (Object, IDesignerHost)

Purpose: Gets a toolbox item from the specified object that represents a
toolbox item in serialized form, using the specified designer host.
Notes:

Parameters:
serializedObject System.Object
The object that contains the ToolboxItem to retrieve.
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost to associate with this ToolboxItem.
Returns System.Drawing.Design.ToolboxItem
The ToolboxItem created from deserialization.
Top

PUBLIC System.Drawing.Design.ToolboxItem GetSelectedToolboxItem ()

Purpose: Gets the currently selected toolbox item
Notes:

Returns System.Drawing.Design.ToolboxItem
The ToolboxItem that is currently selected, or a null reference (Nothing in Visual Basic) if no toolbox item is currently selected.
Top

PUBLIC System.Drawing.Design.ToolboxItem GetSelectedToolboxItem (IDesignerHost)

Purpose: Gets the currently selected toolbox item if it is available to all
designers, or if it supports the specified designer.
Notes:

Parameters:
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost that the selected tool must be associated with for it to be returned.
Returns System.Drawing.Design.ToolboxItem
The ToolboxItem that is currently selected, or a null reference (Nothing in Visual Basic) if no toolbox item is currently selected.
Top

PUBLIC System.Drawing.Design.ToolboxItemCollection GetToolboxItems ()

Purpose: Gets the entire collection of toolbox items from the toolbox.
Notes:

Returns System.Drawing.Design.ToolboxItemCollection
A ToolboxItemCollection that contains the current toolbox items that are associated with the specified category and designer host.
Top

PUBLIC System.Drawing.Design.ToolboxItemCollection GetToolboxItems (character)

Purpose: Gets a collection of toolbox items from the toolbox that match
the specified category.
Notes:

Parameters:
category CHARACTER
The toolbox item category to retrieve the toolbox items from.
Returns System.Drawing.Design.ToolboxItemCollection
A ToolboxItemCollection that contains the current toolbox items that are associated with the specified category and designer host.
Top

PUBLIC System.Drawing.Design.ToolboxItemCollection GetToolboxItems (character, IDesignerHost)

Purpose: Gets the collection of toolbox items that are associated with the
specified designer host and category from the toolbox.
Notes:

Parameters:
category CHARACTER
The toolbox item category to retrieve the toolbox items from.
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost that is associated with the toolbox items to retrieve.
Returns System.Drawing.Design.ToolboxItemCollection
A ToolboxItemCollection that contains the current toolbox items that are associated with the specified category and designer host.
Top

PUBLIC System.Drawing.Design.ToolboxItemCollection GetToolboxItems (IDesignerHost)

Purpose: Gets the collection of toolbox items that are associated with
the specified designer host from the toolbox.
Notes:

Parameters:
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost that is associated with the toolbox items to retrieve.
Returns System.Drawing.Design.ToolboxItemCollection
A ToolboxItemCollection that contains the current toolbox items that are associated with the specified category and designer host.
Top

PROTECTED InitializeBindingSourceFields ()

Purpose: Adds the fields of the BindingSource schema as objects to the Toolbox
Notes:

Top

PRIVATE InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

Top

PUBLIC InsertSeparator ()

Purpose: Adds a separator to the ListView
Notes:

Top

PUBLIC LOGICAL IsSupported (Object, ICollection)

Purpose: Gets a value indicating whether the specified object which
represents a serialized toolbox item matches the specified attributes.
Notes:

Parameters:
serializedObject System.Object
The object that contains the ToolboxItem to retrieve.
filterAttributes System.Collections.ICollection
An ICollection that contains the attributes to test the serialized object for.
Returns LOGICAL
true if the object matches the specified attributes; otherwise, false.
Top

PUBLIC LOGICAL IsSupported (Object, IDesignerHost)

Purpose: Gets a value indicating whether the specified object which
represents a serialized toolbox item can be used by the specified designer host.
Notes:

Parameters:
serializedObject System.Object
The object that contains the ToolboxItem to retrieve.
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost to test for support for the ToolboxItem.
Returns LOGICAL
true if the specified object is compatible with the specified designer host; otherwise, false.
Top

PUBLIC LOGICAL IsToolboxItem (Object)

Purpose: Gets a value indicating whether the specified object is a serialized
toolbox item.
Notes:

Parameters:
serializedObject System.Object
The object to inspect.
Returns LOGICAL
true if the object contains a toolbox item object; otherwise, false.
Top

PUBLIC LOGICAL IsToolboxItem (Object, IDesignerHost)

Purpose: Gets a value indicating whether the specified object is a serialized
toolbox item, using the specified designer host.
Notes:

Parameters:
serializedObject System.Object
The object to inspect.
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost that is making this request.
Returns LOGICAL
true if the object contains a toolbox item object; otherwise, false.
Top

PROTECTED OnLoad (EventArgs)

Purpose: Raises the Load event
Notes: Invokes InitializeBindingSourceFields

Parameters:
e System.EventArgs
The default .NET System.EventArgs instance of the Load event
Top

PUBLIC RemoveCreator (character)

Purpose: Removes a previously added toolbox item creator of the specified
data format.
Notes:

Parameters:
format0 CHARACTER
The data format of the creator to remove.
Top

PUBLIC RemoveCreator (character, IDesignerHost)

Purpose: Removes a previously added toolbox creator that is associated with
the specified data format and the specified designer host.
Notes:

Parameters:
format0 CHARACTER
The data format of the creator to remove.
host System.ComponentModel.Design.IDesignerHost
The IDesignerHost that is associated with the creator to remove.
Top

PUBLIC RemoveToolboxItem (ToolboxItem)

Purpose: Removes the specified toolbox item from the toolbox.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The ToolboxItem to remove from the toolbox.
Top

PUBLIC RemoveToolboxItem (ToolboxItem, character)

Purpose: Removes the specified toolbox item from the toolbox.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The ToolboxItem to remove from the toolbox.
category CHARACTER
The toolbox item category to remove the ToolboxItem from.
Top

PUBLIC SelectedToolboxItemUsed ()

Purpose: Notifies the toolbox service that the selected tool has been used.
Notes:

Top

PUBLIC System.Object SerializeToolboxItem (ToolboxItem)

Purpose: Gets a serializable object that represents the specified toolbox item.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The ToolboxItem to serialize.
Returns System.Object
An object that represents the specified ToolboxItem.
Top

PUBLIC LOGICAL SetCursor ()

Purpose: Sets the current application's cursor to a cursor that represents the
currently selected tool.
Notes:

Returns LOGICAL
true if the cursor is set by the currently selected tool, false if there is no tool selected and the cursor is set to the standard windows cursor.
Top

PUBLIC SetSelectedToolboxItem (ToolboxItem)

Purpose: Selects the specified toolbox item.
Notes:

Parameters:
toolboxItem System.Drawing.Design.ToolboxItem
The ToolboxItem to select.
Top

PRIVATE ultraListView1_MouseDown (Object, MouseEventArgs)

Purpose: Event handler for the MouseDown event of the ultraUltraView1
Notes:

Parameters:
sender System.Object
The object that raised the event
e System.Windows.Forms.MouseEventArgs
The MouseEventArgs instance that contains the parameters of the event


Constructor Detail
Top

PUBLIC BindingSourceFieldsControl ()

Purpose: Constructor of the BindingSourceFieldsControl class
Notes:



Property Detail
Top

PUBLIC Progress.Data.BindingSource BindingSource


Returns Progress.Data.BindingSource
Top

PUBLIC System.Drawing.Design.CategoryNameCollection CategoryNames


Returns System.Drawing.Design.CategoryNameCollection
Top

PUBLIC Consultingwerk.Design.SmartComponents.IDesignerControl DesignerControl


Returns Consultingwerk.Design.SmartComponents.IDesignerControl
Top

PUBLIC System.ComponentModel.Design.IDesignerHost DesignerHost


Returns System.ComponentModel.Design.IDesignerHost
Top

PUBLIC CHARACTER SelectedCategory


Returns CHARACTER


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:51:05