Syncfusion.Shared.Windows
This class holds the name of the Syncfusion.Shared.Windows assembly and provides a helper
routine that helps with resolving types when loading a serialization stream and when
the framework probes for assemblies by reflection.
The full name of this assembly without version information: "Syncfusion.Shared.Windows"
A reference to the for the grid assembly.
The root namespace of this assembly. Used internally for locating resources within the assembly.
This delegate helps with resolving types and can be used as a eventhandler
for a event.
The source of the event.
The event data with information about the type.
A reference to the assembly where the type is located.
Use this handler when reading back types from a serialization stread
saved with an earlier version of this assembly.
public static GridModel LoadSoap(Stream s)
{
try
{
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(SharedWindowsAssembly.AssemblyResolver);
SoapFormatter b = new SoapFormatter();
b.AssemblyFormat = FormatterAssemblyStyle.Simple;
GridModel t = b.Deserialize(s) as GridModel;
t.Modified = false;
return t;
}
finally
{
AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(SharedWindowsAssembly.AssemblyResolver);
}
}
Wrapper object for menu actions
Creates an ActionInfo object
Fully qualified name of Event that will be fired
Parent form/object that contains the menu that item is in
The menu item tied to the event (e.g. MenuItem, ToolbarItem, etc)
Adds the action to the parent object's list of ActionItems. The parent object must have a "RegisterAction" method.
Parent form/object
A collection that stores 'ActionInfo' objects.
Initializes a new instance of 'ActionInfoCollection'.
Initializes a new instance of 'ActionInfoCollection' based on an already existing instance.
A 'ActionInfoCollection' from which the contents is copied
Initializes a new instance of 'ActionInfoCollection' with an array of 'ActionInfo' objects.
An array of 'ActionInfo' objects with which to initialize the collection
Represents the 'ActionInfo' item at the specified index position.
The zero-based index of the entry to locate in the collection.
The entry at the specified index of the collection.
Adds a 'ActionInfo' item with the specified value to the 'ActionInfoCollection'
The 'ActionInfo' to add.
The index at which the new element was inserted.
Copies the elements of an array at the end of this instance of 'ActionInfoCollection'.
An array of 'ActionInfo' objects to add to the collection.
Adds the contents of another 'ActionInfoCollection' at the end of this instance.
A 'ActionInfoCollection' containing the objects to add to the collection.
Gets a value indicating whether the 'ActionInfoCollection' contains the specified value.
The item to locate.
True if the item exists in the collection; false otherwise.
Copies the 'ActionInfoCollection' values to a one-dimensional System.Array
instance starting at the specified array index.
The one-dimensional System.Array that represents the copy destination.
The index in the array where copying begins.
Returns the index of a 'ActionInfo' object in the collection.
The 'ActionInfo' object whose index will be retrieved.
If found, the index of the value; otherwise, -1.
Inserts an existing 'ActionInfo' into the collection at the specified index.
The zero-based index where the new item should be inserted.
The item to insert.
Returns an enumerator that can be used to iterate through
the 'ActionInfoCollection'.
Removes a specific item from the 'ActionInfoCollection'.
The item to remove from the 'ActionInfoCollection'.
TODO: Describe what custom processing this method does
before setting an item in the collection
TODO: Describe what custom processing this method does
before insering a new item in the collection
A strongly typed enumerator for 'ActionInfoCollection'
Enumerator constructor
Gets the current element from the collection (strongly typed)
Gets the current element from the collection
Advances the enumerator to the next element of the collection
Advances the enumerator to the next element of the collection
Sets the enumerator to the first element in the collection
Sets the enumerator to the first element in the collection
This class is the common base class for actions such as
MenuActions, Editactions or plugins
Inheriting actions must overwrite this method, it is called, when the action
occurs.
Derived classes must implement to create a object.
Derived classes must implement to create a object.
Summary description for WinFormsMenuFactory.
Abstract base class for menu implementation
Derived classes must override.
returns a Shortcut based on the string representation (e.g. CtrlN)
the string to convert into a Shortcut
A System.Windows.Forms.Shortcut value...
Toolbar to be used by default WinForms MenuFactory
Abstract class used to provide implementation of ToolBars
Derived classes must override.
Implementation class for standard WinForms menu.
Summary description for XMLToolBarImp.
Type of menus to add
Standard WinForms menus
XPMenus from Essential Tools if available
New Whidbey menus
MenuLoader contains static implementation of MenuFactories
Creates a MenuFactory
Type of factory to create
The fully qualified namespace that contains the menu actions
String array of qualified names for toolbar resources that contain ToolbarDefinitions
String array of qualified names for menu resources that contain MenuDefinitions
The ResourceManager that contains the image/icon information
The parent form/object that contains the menu
A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value...
Creates a MenuFactory
Type of MenuFactory to create
Fully qualified namespace that contains the action items
Resource in parent assembly that contains a ToolbarItemStructCollection
Resource in parent assembly that contains a MenuItemStructCollection
ResourceManager that contains the icon/image resources
The parent form/object that contains the menu.
A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value...
Creates a MenuFactory
Type of MenuFactory to create
Fully qualified namespace that contains the action items
Stream that contains the ToolbarItemStructCollection
Stream that contains the MenuItemStructCollection
ResourceManager containing the icon/image resources for the menu
Parent form/object that contains the menu
A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value...
Creates a MenuFactory
Type of MenuFactory to create
Fully qualified namespace containing the action items
The ToolbarItemStructCollection to create
The MenuItemStructCollection to create
The ResourceManager that contains the icon/image resources
Parent form/object that contains the menu
A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value...
Creates a MenuFactory
Type of MenuFactory to create
Fully qualified namespace that contains the action items
Array of ToolBarItemStructCollections to create multiple toolbars
Array of MenuItemStructCollections to create multiple menus
ResourceManager containing the image resources
Parent form/object that contains the menu
A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value...
Creates the MenuFactory based on toolbar/menu items provided by the public constructors
The type of MenuFactory to create.
A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value...
Constructs a MenuItemStructCollection[] based on MenuDefinition resources in the parent's assembly
Qualified resource name that contains the MenuDefinitions
A Syncfusion.Windows.Forms.InternalMenus.MenuItemStructCollection[] value...
Constructs a ToolBarItemStructCollection[] based on ToolBarDefinition resources in the parent's assembly
Qualified resource name that contains the ToolBarDefinitions
A Syncfusion.Windows.Forms.InternalMenus.ToolBarItemStructCollection[] value...
Returns an ArrayList of either MenuItemStructCollections or ToolBarItemStructCollections
The resources in the parent's assembly
typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection)
A System.Collections.ArrayList value...
Returns either a MenuItemStructCollection or a ToolBarItemStructCollection
The stream to read the collection from
typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection)
A object value...
Returns either a MenuItemStructCollection or a ToolBarItemStructCollection
The fully qualified resource name in the parent's assembly
typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection)
A object value...
Wrapper object that controls the images used in the menu and toolbar implementations
Adds an image to the internal image list from the internal imageCollection at the specified index
A collection that stores 'ImageStruct' objects.
Initializes a new instance of 'ImageStructCollection'.
Initializes a new instance of 'ImageStructCollection' based on an already existing instance.
A 'ImageStructCollection' from which the contents is copied
Initializes a new instance of 'ImageStructCollection' with an array of 'ImageStruct' objects.
An array of 'ImageStruct' objects with which to initialize the collection
Represents the 'ImageStruct' item at the specified index position.
The zero-based index of the entry to locate in the collection.
The entry at the specified index of the collection.
Adds a 'ImageStruct' item with the specified value to the 'ImageStructCollection'
The 'ImageStruct' to add.
The index at which the new element was inserted.
Copies the elements of an array at the end of this instance of 'ImageStructCollection'.
An array of 'ImageStruct' objects to add to the collection.
Adds the contents of another 'ImageStructCollection' at the end of this instance.
A 'ImageStructCollection' containing the objects to add to the collection.
Gets a value indicating whether the 'ImageStructCollection' contains the specified value.
The item to locate.
True if the item exists in the collection; false otherwise.
Gets a value indicating the index within 'ImageStructCollection' of an ImageStruct with the specified resource name.
The value to locate.
True to add the image if it does not exist
The Resource Manager that contains the image
True if the item exists in the collection; false otherwise.
Copies the 'ImageStructCollection' values to a one-dimensional System.Array
instance starting at the specified array index.
The one-dimensional System.Array that represents the copy destination.
The index in the array where copying begins.
Returns the index of a 'ImageStruct' object in the collection.
The 'ImageStruct' object whose index will be retrieved.
If found, the index of the value; otherwise, -1.
Inserts an existing 'ImageStruct' into the collection at the specified index.
The zero-based index where the new item should be inserted.
The item to insert.
Returns an enumerator that can be used to iterate through
the 'ImageStructCollection'.
Removes a specific item from the 'ImageStructCollection'.
The item to remove from the 'ImageStructCollection'.
A strongly typed enumerator for 'ImageStructCollection'
Enumerator constructor
Gets the current element from the collection (strongly typed)
Gets the current element from the collection
Advances the enumerator to the next element of the collection
Advances the enumerator to the next element of the collection
Sets the enumerator to the first element in the collection
Sets the enumerator to the first element in the collection
Defines a Menu by a name and MenuItemStructCollection
Creates an empty MenuDefinition
Constructs a MenuDefinition given the Name and MenuItemStructCollection
Name of the menu
The MenuItemStructCollection used to create the menu
Name of the contained menu
Collection of objects defining the contained menu items.
Defines a Toolbar by name and ToolBarItemStructCollection
Creates an empty ToolBarDefinition
Creates a ToolBarDefinition given the name and ToolBarItemStructCollection
Name of the menu
ToolBarItemStructCollection used to create the toolbar
A void value...
Name of the defined Toolbar
Collection of objects that defines the items in the toolbar.
Internal structure used for menu items
Text to display
Resource of the icon
Tooltip information
obsolete
obsolete
String format of Shortcut. e.g. CtrlN
Name of the event handler
Children of the menu item
Internal structure used for toolbar items
Resource of the icon
Tooltip information
Text to display
Name of the event handler
Availabe styles are Button,ToggleButton,Radio,CheckBox,TextBox and ComboBox
Width of the button if custom drawn
Height of the button if custom drawn
A collection that stores 'MenuItemStruct' objects.
Initializes a new instance of 'MenuItemStructCollection'.
Name of the menu
Initializes a new instance of 'MenuItemStructCollection' based on an already existing instance.
A 'MenuItemStructCollection' from which the contents is copied
Initializes a new instance of 'MenuItemStructCollection' with an array of 'MenuItemStruct' objects.
An array of 'MenuItemStruct' objects with which to initialize the collection
Represents the 'MenuItemStruct' item at the specified index position.
The zero-based index of the entry to locate in the collection.
The entry at the specified index of the collection.
Adds a 'MenuItemStruct' item with the specified value to the 'MenuItemStructCollection'
The 'MenuItemStruct' to add.
The index at which the new element was inserted.
Copies the elements of an array at the end of this instance of 'MenuItemStructCollection'.
An array of 'MenuItemStruct' objects to add to the collection.
Adds the contents of another 'MenuItemStructCollection' at the end of this instance.
A 'MenuItemStructCollection' containing the objects to add to the collection.
Gets a value indicating whether the 'MenuItemStructCollection' contains the specified value.
The item to locate.
True if the item exists in the collection; false otherwise.
Copies the 'MenuItemStructCollection' values to a one-dimensional System.Array
instance starting at the specified array index.
The one-dimensional System.Array that represents the copy destination.
The index in the array where copying begins.
Returns the index of a 'MenuItemStruct' object in the collection.
The 'MenuItemStruct' object whose index will be retrieved.
If found, the index of the value; otherwise, -1.
Inserts an existing 'MenuItemStruct' into the collection at the specified index.
The zero-based index where the new item should be inserted.
The item to insert.
Returns an enumerator that can be used to iterate through
the 'MenuItemStructCollection'.
Removes a specific item from the 'MenuItemStructCollection'.
The item to remove from the 'MenuItemStructCollection'.
A strongly typed enumerator for 'MenuItemStructCollection'
Enumerator constructor
Gets the current element from the collection (strongly typed)
Gets the current element from the collection
Advances the enumerator to the next element of the collection
Advances the enumerator to the next element of the collection
Sets the enumerator to the first element in the collection
Sets the enumerator to the first element in the collection
A collection that stores 'ToolBarItemStruct' objects.
Initializes a new instance of 'ToolBarItemStructCollection'.
Name of the toolbar
Initializes a new instance of 'ToolBarItemStructCollection' based on an already existing instance.
A 'ToolBarItemStructCollection' from which the contents is copied
Initializes a new instance of 'ToolBarItemStructCollection' with an array of 'ToolBarItemStruct' objects.
An array of 'ToolBarItemStruct' objects with which to initialize the collection
Represents the 'ToolBarItemStruct' item at the specified index position.
The zero-based index of the entry to locate in the collection.
The entry at the specified index of the collection.
Adds a 'ToolBarItemStruct' item with the specified value to the 'ToolBarItemStructCollection'
The 'ToolBarItemStruct' to add.
The index at which the new element was inserted.
Copies the elements of an array at the end of this instance of 'ToolBarItemStructCollection'.
An array of 'ToolBarItemStruct' objects to add to the collection.
Adds the contents of another 'ToolBarItemStructCollection' at the end of this instance.
A 'ToolBarItemStructCollection' containing the objects to add to the collection.
Gets a value indicating whether the 'ToolBarItemStructCollection' contains the specified value.
The item to locate.
True if the item exists in the collection; false otherwise.
Copies the 'ToolBarItemStructCollection' values to a one-dimensional System.Array
instance starting at the specified array index.
The one-dimensional System.Array that represents the copy destination.
The index in the array where copying begins.
Returns the index of a 'ToolBarItemStruct' object in the collection.
The 'ToolBarItemStruct' object whose index will be retrieved.
If found, the index of the value; otherwise, -1.
Inserts an existing 'ToolBarItemStruct' into the collection at the specified index.
The zero-based index where the new item should be inserted.
The item to insert.
Returns an enumerator that can be used to iterate through
the 'ToolBarItemStructCollection'.
Removes a specific item from the 'ToolBarItemStructCollection'.
The item to remove from the 'ToolBarItemStructCollection'.
A strongly typed enumerator for 'ToolBarItemStructCollection'
Enumerator constructor
Gets the current element from the collection (strongly typed)
Gets the current element from the collection
Advances the enumerator to the next element of the collection
Advances the enumerator to the next element of the collection
Sets the enumerator to the first element in the collection
Sets the enumerator to the first element in the collection