Class VirtualRecordEntryList
Represents the VirtualRecordEntryList class.
Implements
Inherited Members
Namespace: Syncfusion.Data
Assembly: Syncfusion.Data.Portable.dll
Syntax
public class VirtualRecordEntryList : RecordsEntryList, IRecordsEntryList, IList<RecordEntry>, ICollection<RecordEntry>, IEnumerable<RecordEntry>, IEnumerable, INotifyCollectionChanged, IDisposable
Constructors
VirtualRecordEntryList(Group)
Initializes the VirtualRecordEntryList class.
Declaration
public VirtualRecordEntryList(Group group)
Parameters
Type | Name | Description |
---|---|---|
Group | group |
Fields
SourceList
Maintains the source list collection.
Declaration
protected List<object> SourceList
Field Value
Type |
---|
System.Collections.Generic.List<System.Object> |
Methods
Add(RecordEntry)
Adds an item to the SourceList.
Declaration
public override void Add(RecordEntry item)
Parameters
Type | Name | Description |
---|---|---|
RecordEntry | item |
Overrides
GetEnumerator()
Gets an Enumerator that iterates through the collection.
Declaration
public override IEnumerator<RecordEntry> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<RecordEntry> | A System.Collections.Generic.IEnumerator<>that can be used to iterate through the collection. |
Overrides
GetRecord(Int32)
Gets the Object of the record entry for the specified record index.
Declaration
public override RecordEntry GetRecord(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The Record Index |
Returns
Type | Description |
---|---|
RecordEntry | The object of Record Entry for the Specified Record Index |
Overrides
GetRecordEntry(Int32, Object)
Gets the Object of RecordEntry for the specified record index and underlying data in the collection.
Declaration
public override RecordEntry GetRecordEntry(int recordIndex, object data = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | recordIndex | |
System.Object | data |
Returns
Type | Description |
---|---|
RecordEntry | Object of RecordEntry for the specified record index and underlying data in the collection. |
Overrides
GetSource()
Gets the Source of the Record Entry Collection.
Declaration
public override List<object> GetSource()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Object> | the Source of the Record Entry Collection. |
Overrides
IndexOfRecord(Object)
Returns the index of record.
Declaration
public override int IndexOfRecord(object data)
Parameters
Type | Name | Description |
---|---|---|
System.Object | data |
Returns
Type | Description |
---|---|
System.Int32 | Returns from SourceList when the data not a record entry. |
Overrides
Insert(Int32, RecordEntry)
Override to insert the record to SourceList.
Declaration
public override void Insert(int index, RecordEntry item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
RecordEntry | item |
Overrides
OnInitialize()
Initialize the internalList and SourceList Collection.
Declaration
protected override void OnInitialize()
Overrides
Remove(RecordEntry)
Override to remove the record from SourceList.
Declaration
public override bool Remove(RecordEntry item)
Parameters
Type | Name | Description |
---|---|---|
RecordEntry | item | The item to be removed from SourceList and intrenalList. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when the item is removed successfully. otherwise, returns false. |
Overrides
RemoveAt(Int32)
Override to remove the record from SourceList at specified index.
Declaration
public override void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |