Class DataFormItemManager
Represents a class that creates DataFormItems collection and item properties.
Inheritance
Implements
Namespace: Syncfusion.XForms.DataForm
Assembly: Syncfusion.SfDataForm.XForms.dll
Syntax
public class DataFormItemManager : Object, IDisposable
Constructors
DataFormItemManager(SfDataForm)
Initializes a new instance of the DataFormItemManager class.
Declaration
public DataFormItemManager(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm | DataForm object. |
Properties
DataFormItems
Gets the data form items.
Declaration
public DataFormItems DataFormItems { get; }
Property Value
Type | Description |
---|---|
DataFormItems | The data form items. |
Methods
Dispose()
Releases all resource used by the DataFormItemManager object.
Declaration
public void Dispose()
Remarks
Call Dispose() when you are finished using the DataFormItemManager. The Dispose() method leaves the DataFormItemManager in an unusable state. After calling Dispose(), you must release all references to the DataFormItemManager so the garbage collector can reclaim the memory that the DataFormItemManager was occupying.
Dispose(Boolean)
Dispose the specified isDisposing.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | If set to |
GenerateDataFormItems(PropertyInfoCollection, List<DataFormItemBase>)
Generates DataFormItems from PropertyInfoCollection.
Declaration
protected virtual List<DataFormItemBase> GenerateDataFormItems(PropertyInfoCollection itemProperties, List<DataFormItemBase> dataFormItems)
Parameters
Type | Name | Description |
---|---|---|
PropertyInfoCollection | itemProperties | the item properties. |
System.Collections.Generic.List<DataFormItemBase> | dataFormItems | list of data form items. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<DataFormItemBase> | list of generated data form items. |
GetDataFormGroupItem(String)
Gets the DataFormGroupItem from DataFormItemManager by group name.
Declaration
public DataFormGroupItem GetDataFormGroupItem(string groupName)
Parameters
Type | Name | Description |
---|---|---|
System.String | groupName | The group name. |
Returns
Type | Description |
---|---|
DataFormGroupItem | Returns DataFormGroupItem. |
GetValue(DataFormItem)
Gets a value for property.
Declaration
public virtual object GetValue(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The DataFormItem to get a value. |
Returns
Type | Description |
---|---|
System.Object | Returns value. |
SetValue(DataFormItem, Object)
Sets a value to property.
Declaration
public virtual void SetValue(DataFormItem dataFormItem, object value)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The DataFormItem to get a value. |
System.Object | value | The value to be set. |