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 |
RadialMenuCustomCollectionEditorForm(RadialMenu, IServiceProvider)
constructor for the form in NET Core
Declaration
public RadialMenuCustomCollectionEditorForm(RadialMenu _owner, IServiceProvider requiredService)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenu | _owner | Control to which the RadialMenuItemCollection is associated with |
| System.IServiceProvider | requiredService | IServiceProvider instance |
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
add_DestroyingInstance(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_DestroyingInstance(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
add_InstanceCreated(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_InstanceCreated(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
add_ItemAdded(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_ItemAdded(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
add_ItemRemoved(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_ItemRemoved(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
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. |
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 |
OnFormClosing(FormClosingEventArgs)
Overrides OnClosing method.
Declaration
protected override void OnFormClosing(FormClosingEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.FormClosingEventArgs | e | CancelEventArgs which contains EventData |
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()
remove_DestroyingInstance(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_DestroyingInstance(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
remove_InstanceCreated(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_InstanceCreated(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
remove_ItemAdded(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_ItemAdded(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
remove_ItemRemoved(RadialMenuCustomCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_ItemRemoved(RadialMenuCustomCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialMenuCustomCollectionEditorForm.InstanceEventHandler | value |
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 | The object to be customized in respect to it's corresponding itemcollection. |
| 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 |