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.XForms.DataForm
Assembly: Syncfusion.SfDataForm.XForms.dll
Syntax
public class DataFormItems : List<DataFormItemBase>, IDisposable
Constructors
DataFormItems()
Initializes a new instance of the DataFormItems class.
Declaration
public DataFormItems()
Properties
Count
Gets the number of items in DataFormItems. Read-Only.
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; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Item index. |
Property Value
| Type | Description |
|---|---|
| DataFormItemBase | the corresponding DataFormItem. |
Item[Int32, Int32]
Returns the DataFormItemBase based on row and column index.
Declaration
public DataFormItemBase this[int rowIndex, int columnIndex] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Item row index. |
| System.Int32 | columnIndex | Item column index. |
Property Value
| Type | Description |
|---|---|
| DataFormItemBase | The corresponding DataFormItem. |
Item[String]
Returns the DataFormItem associated with data field.
Declaration
public DataFormItem this[string propertyName] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | propertyName | Property name. |
Property Value
| Type | Description |
|---|---|
| DataFormItem | The corresponding 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. |