Class RadialMenuCustomCollectionEditorForm
CustomCollectionEditorForm for RadialMenu
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class RadialMenuCustomCollectionEditorForm : MetroForm
Constructors
RadialMenuCustomCollectionEditorForm(RadialMenu)
Initializes the new instance for RadialMenuCustomCollectionEditorForm class.
Declaration
public RadialMenuCustomCollectionEditorForm(RadialMenu _owner)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenu | _owner | RadialMenu |
Fields
pg_PropGrid
Variable for pg_PropGrid.
Declaration
protected PropertyGrid pg_PropGrid
Field Value
| Type |
|---|
| System.Windows.Forms.PropertyGrid |
Properties
Collection
Gets or sets the Collection.
Declaration
public IList Collection { get; set; }
Property Value
| Type |
|---|
| System.Collections.IList |
Methods
CreateInstance(Type)
Creates a new instance of the specified collection item type.
Declaration
protected object CreateInstance(Type itemType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | itemType | The type of item to create. |
Returns
| Type | Description |
|---|---|
| System.Object | A new instance of the specified object. |
CreateItem(Object)
Creates a new object for itemcollection .
Declaration
protected virtual object CreateItem(object reffObject)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | reffObject | The collection item for which to create an object. |
Returns
| Type |
|---|
| System.Object |
CreateNewItemTypes(IList)
Gets the data types that this collection editor can contain
Declaration
protected Type[] CreateNewItemTypes(IList coll)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IList | coll | The collection for which to return the available types |
Returns
| Type | Description |
|---|---|
| System.Type[] | An array of data types that this collection can contain. |
DestroyInstance(Object)
Destroys the specified instance of the object.
Declaration
protected void DestroyInstance(object instance)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | instance | The object to destroy. |
GenerateItemArray(IList)
Generates the item array.
Declaration
protected object[] GenerateItemArray(IList collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IList | collection | Collection |
Returns
| Type | Description |
|---|---|
| System.Object[] | Object |
GetItemType(IList)
Gets the data type of each item in the collection.
Declaration
protected Type GetItemType(IList coll)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IList | coll | The collection for which to get the item's type |
Returns
| Type | Description |
|---|---|
| System.Type | The data type of the collection items. |
OnClosing(CancelEventArgs)
Overrides OnClosing method.
Declaration
protected override void OnClosing(CancelEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.CancelEventArgs | e | CancelEventArgs which contains EventData |
OnDestroyingInstance(Object)
Destroys the specified instance of the object.
Declaration
protected void OnDestroyingInstance(object instance)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | instance | The object to destroy |
OnInstanceCreated(Object)
Creates a new instance of the specified collection item type.
Declaration
protected void OnInstanceCreated(object instance)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | instance | The object to destroy |
OnItemAdded(Object)
Adds the Item to the collection.
Declaration
protected void OnItemAdded(object Item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | Item | Item which is to be added |
OnItemRemoved(Object)
Removes the Item from the collection.
Declaration
protected void OnItemRemoved(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | Item which is to be removed. |
OnResize(EventArgs)
Overrides OnResize method.
Declaration
protected override void OnResize(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | EventArgs which contains EventData |
RefreshValues()
Refreshes the value by adding the Items to the collection.
Declaration
protected virtual void RefreshValues()
SetProperties(Object, Object)
Cast the item into the type of reffObject to add in the item collection.
Declaration
protected virtual void SetProperties(object item, object reffObject)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | |
| System.Object | reffObject | The collection item for which it customizes the created object. |
Events
DestroyingInstance
Event for DestroyingInstance.
Declaration
public event RadialMenuCustomCollectionEditorForm.InstanceEventHandler DestroyingInstance
Event Type
| Type |
|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler |
InstanceCreated
Event for InstanceCreated.
Declaration
public event RadialMenuCustomCollectionEditorForm.InstanceEventHandler InstanceCreated
Event Type
| Type |
|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler |
ItemAdded
Event for ItemAdded.
Declaration
public event RadialMenuCustomCollectionEditorForm.InstanceEventHandler ItemAdded
Event Type
| Type |
|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler |
ItemRemoved
Event for ItemRemoved.
Declaration
public event RadialMenuCustomCollectionEditorForm.InstanceEventHandler ItemRemoved
Event Type
| Type |
|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler |