Class DataFormItems
Represents a collection that maintains the DataFormItemBase which encapsulates the layout and editor setting for a data field appearing in SfDataForm.
Inheritance
Implements
Namespace: Syncfusion.iOS.DataForm
Assembly: Syncfusion.SfDataForm.iOS.dll
Syntax
public class DataFormItems : List<DataFormItemBase>, IDisposable
Constructors
DataFormItems(Int32)
Initializes a new instance of the DataFormItems class.
Declaration
public DataFormItems(int columnCount = 1)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | columnCount |
Properties
Count
Returns the total count of items including groups and its inner items.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
Item[Int32]
Returns the DataFormItemBase for the index.
Declaration
public DataFormItemBase this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
DataFormItemBase |
Item[Int32, Int32]
Returns the DataFormItemBase based on row and column index.
Declaration
public DataFormItemBase this[int rowIndex, int columnIndex] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | |
System.Int32 | columnIndex |
Property Value
Type |
---|
DataFormItemBase |
Item[String]
Returns the DataFormItem associated with data field.
Declaration
public DataFormItem this[string propertyName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Property Value
Type |
---|
DataFormItem |
Methods
Dispose()
Disposes all the resources used by the DataFormItems class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DataFormItems class.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
IndexOf(DataFormItemBase)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire System.Collections.ObjectModel.Collection`1.
Declaration
public int IndexOf(DataFormItemBase item)
Parameters
Type | Name | Description |
---|---|---|
DataFormItemBase | item | The object to locate in the System.Collections.Generic.List<>. The value can be null for reference types. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the first occurrence of item within the entire System.Collections.ObjectModel.Collection`1, if found. Otherwise, -1 |