Class CustomCollectionEditorForm
Class for CustomCollectionEditorForm.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class CustomCollectionEditorForm : MetroForm
Constructors
CustomCollectionEditorForm(Carousel)
Initializes the new instance of CustomCollectionEditorForm class.
Declaration
public CustomCollectionEditorForm(Carousel _owner)
Parameters
Type | Name | Description |
---|---|---|
Carousel | _owner | Carousel |
Fields
pg_PropGrid
Variable for PropertyGrid.
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 ItemArray.
Declaration
protected object[] GenerateItemArray(IList collection)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IList | collection | IList collection |
Returns
Type | Description |
---|---|
System.Object[] | Returns the object array. |
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. |
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 type of item to create. |
OnItemAdded(Object)
Adds the specified instance of the object.
Declaration
protected void OnItemAdded(object Item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | Item | The type of item to create. |
OnItemRemoved(Object)
Removes the specified instance of the object.
Declaration
protected void OnItemRemoved(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The type of item to create. |
OnResize(EventArgs)
Overrides OnResize function.
Declaration
protected override void OnResize(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | EventArgs which contains EventData |
RefreshValues()
Refreshes the ItemCollection.
Declaration
protected virtual void RefreshValues()
SetProperties(Object, Object)
Cast the item into the type of reffObject to add it 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 with 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 CustomCollectionEditorForm.InstanceEventHandler DestroyingInstance
Event Type
Type |
---|
CustomCollectionEditorForm.InstanceEventHandler |
InstanceCreated
Event for InstanceCreated.
Declaration
public event CustomCollectionEditorForm.InstanceEventHandler InstanceCreated
Event Type
Type |
---|
CustomCollectionEditorForm.InstanceEventHandler |
ItemAdded
Event for ItemAdded.
Declaration
public event CustomCollectionEditorForm.InstanceEventHandler ItemAdded
Event Type
Type |
---|
CustomCollectionEditorForm.InstanceEventHandler |
ItemRemoved
Event for ItemRemoved.
Declaration
public event CustomCollectionEditorForm.InstanceEventHandler ItemRemoved
Event Type
Type |
---|
CustomCollectionEditorForm.InstanceEventHandler |