Class ItemCollectionEditorForm
CustomCollectionEditorForm for TreeNavigator
Inheritance
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ItemCollectionEditorForm : Form
Constructors
ItemCollectionEditorForm(TreeNavigator)
constructor for the form
Declaration
public ItemCollectionEditorForm(TreeNavigator _owner)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNavigator | _owner | Control to which the ItemCollection is associated with |
ItemCollectionEditorForm(TreeNavigator, IServiceProvider)
constructor for the form in NET Core
Declaration
public ItemCollectionEditorForm(TreeNavigator _owner, IServiceProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNavigator | _owner | Control to which the ItemCollection is associated with |
| System.IServiceProvider | provider | IServiceProvider instance |
Fields
pg_PropGrid
Property grid
Declaration
protected PropertyGrid pg_PropGrid
Field Value
| Type |
|---|
| System.Windows.Forms.PropertyGrid |
Properties
Collection
Ilistcollection property
Declaration
public IList Collection { get; set; }
Property Value
| Type |
|---|
| System.Collections.IList |
Methods
add_DestroyingInstance(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_DestroyingInstance(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.InstanceEventHandler | value |
add_InstanceCreated(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_InstanceCreated(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.InstanceEventHandler | value |
add_ItemAdded(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_ItemAdded(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.InstanceEventHandler | value |
add_ItemRemoved(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void add_ItemRemoved(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.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)
GenerateItemArray for the itemcollection
Declaration
protected object[] GenerateItemArray(IList collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.IList | collection | Item collection for displaying in text box |
Returns
| Type | Description |
|---|---|
| System.Object[] | Returns the Item collection |
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 | Destroys the object created |
OnFormClosing(FormClosingEventArgs)
Override for onclosing
Declaration
protected override void OnFormClosing(FormClosingEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.FormClosingEventArgs | e | CancelEvent arguement |
OnInstanceCreated(Object)
Creates the specified instance of the object.
Declaration
protected void OnInstanceCreated(object instance)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | instance | Instance of the Item |
OnItemAdded(Object)
Fires on item added
Declaration
protected void OnItemAdded(object Item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | Item | Item that is being added |
OnItemRemoved(Object)
Fires on item removes
Declaration
protected void OnItemRemoved(object item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | item | Item that is being added |
OnResize(EventArgs)
override method to resize
Declaration
protected override void OnResize(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | EventArgs parameter |
RefreshValues()
RefreshValues in list box
Declaration
protected virtual void RefreshValues()
remove_DestroyingInstance(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_DestroyingInstance(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.InstanceEventHandler | value |
remove_InstanceCreated(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_InstanceCreated(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.InstanceEventHandler | value |
remove_ItemAdded(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_ItemAdded(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.InstanceEventHandler | value |
remove_ItemRemoved(ItemCollectionEditorForm.InstanceEventHandler)
Declaration
public void remove_ItemRemoved(ItemCollectionEditorForm.InstanceEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemCollectionEditorForm.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
Fires once the control is deleted to the list
Declaration
public event ItemCollectionEditorForm.InstanceEventHandler DestroyingInstance
Event Type
| Type |
|---|
| ItemCollectionEditorForm.InstanceEventHandler |
InstanceCreated
Fires once the control is added to the list.
Declaration
public event ItemCollectionEditorForm.InstanceEventHandler InstanceCreated
Event Type
| Type |
|---|
| ItemCollectionEditorForm.InstanceEventHandler |
ItemAdded
Fires once the item added
Declaration
public event ItemCollectionEditorForm.InstanceEventHandler ItemAdded
Event Type
| Type |
|---|
| ItemCollectionEditorForm.InstanceEventHandler |
ItemRemoved
Fires once the Item removed
Declaration
public event ItemCollectionEditorForm.InstanceEventHandler ItemRemoved
Event Type
| Type |
|---|
| ItemCollectionEditorForm.InstanceEventHandler |