Class OffsetArrayList
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Parser.Biff_Records
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
[CLSCompliant(false)]
public class OffsetArrayList : IList, IList<IBiffStorage>, ICollection<IBiffStorage>, IEnumerable<IBiffStorage>, ICollection, IEnumerable
Constructors
OffsetArrayList()
Declaration
public OffsetArrayList()
Properties
Count
Read-only. Gets the number of elements contained in the ICollection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsFixedSize
Read-only. True if list has fixed size.
Declaration
public bool IsFixedSize { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsReadOnly
Read-only. True if list is Read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSynchronized
Read-only. Gets a value indicating whether access to the ICollection is synchronized (thread-safe).
Declaration
public bool IsSynchronized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Gets / sets record in the list at the specified index.
Declaration
public IBiffStorage this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
IBiffStorage |
SyncRoot
Read-only. Gets an object that can be used to synchronize access to the ICollection.
Declaration
public object SyncRoot { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
Add(IBiffStorage)
Adds an item to the list.
Declaration
public int Add(IBiffStorage value)
Parameters
Type | Name | Description |
---|---|---|
IBiffStorage | value | The item to add to the list. |
Returns
Type | Description |
---|---|
System.Int32 | The position into which the new element was inserted. |
Add(Object)
Adds an item to the list.
Declaration
public int Add(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The item to add to the list. |
Returns
Type | Description |
---|---|
System.Int32 | The position into which the new element was inserted. |
AddList(IList)
Adds a range of items to the list.
Declaration
public void AddList(IList value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IList | value | Collection of the records that should be added to the list. |
AddRange(ICollection<IBiffStorage>)
Adds a range of items to the list.
Declaration
public void AddRange(ICollection<IBiffStorage> value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<IBiffStorage> | value | Collection of the records that should be added to the list. |
AddRange(ICollection)
Adds a range of items to the list.
Declaration
public void AddRange(ICollection value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ICollection | value | Collection of the records that should be added to the list. |
CalculateRecordsStreamPos()
Method that updates StreamPos field in records stored in this collection.
Declaration
protected void CalculateRecordsStreamPos()
Clear()
Removes all items from the list.
Declaration
public void Clear()
Contains(IBiffStorage)
Determines whether the list contains a specific value.
Declaration
public bool Contains(IBiffStorage value)
Parameters
Type | Name | Description |
---|---|---|
IBiffStorage | value | The record to locate in the list. |
Returns
Type | Description |
---|---|
System.Boolean | True if the value is found in the list; otherwise False. |
Contains(Object)
Determines whether the list contains a specific value.
Declaration
public bool Contains(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The record to locate in the list. |
Returns
Type | Description |
---|---|
System.Boolean | True if the value is found in the list; otherwise False. |
CopyTo(IBiffStorage[], Int32)
Copy the BiffStorage item to list
Declaration
public void CopyTo(IBiffStorage[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
IBiffStorage[] | array | |
System.Int32 | arrayIndex |
CopyTo(Array, Int32)
Copies the elements of the ICollection to an array, starting at a particular array index.
Declaration
public void CopyTo(Array array, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | The one dimensional array that is the destination of the elements copied from ICollection. The array must have zero-based indexing. |
System.Int32 | index | The zero-based index in an array at which copying begins. |
GetEnumerator()
Returns an enumerator that can iterate through a collection.
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An IEnumerator that can be used to iterate through the collection. |
IndexOf(IBiffStorage)
Determines the index of a specific item in the list.
Declaration
public int IndexOf(IBiffStorage value)
Parameters
Type | Name | Description |
---|---|---|
IBiffStorage | value | Record to locate in the list. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the value if found in the list; otherwise -1. |
IndexOf(Object)
Determines the index of a specific item in the list.
Declaration
public int IndexOf(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Record to locate in the list. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the value if found in the list; otherwise -1. |
Insert(Int32, IBiffStorage)
Inserts an item to the list at the specified position.
Declaration
public void Insert(int index, IBiffStorage value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index at which value should be inserted. |
IBiffStorage | value | The record to insert into list. |
Insert(Int32, Object)
Inserts an item to the list at the specified position.
Declaration
public void Insert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index at which value should be inserted. |
System.Object | value | The record to insert into list. |
Remove(IBiffStorage)
Removes the first occurrence of a specific record from the list.
Declaration
public bool Remove(IBiffStorage value)
Parameters
Type | Name | Description |
---|---|---|
IBiffStorage | value | Value to remove. |
Returns
Type | Description |
---|---|
System.Boolean |
Remove(Object)
Removes the first occurrence of a specific record from the list.
Declaration
public void Remove(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value to remove. |
RemoveAt(Int32)
Removes the item at the specified index from the list.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the item to removed. |
UpdateBiffRecordsOffsets()
Updates offsets to the Biff records.
Declaration
public void UpdateBiffRecordsOffsets()
Explicit Interface Implementations
ICollection<IBiffStorage>.Add(IBiffStorage)
Adds an item to the list.
Declaration
void ICollection<IBiffStorage>.Add(IBiffStorage value)
Parameters
Type | Name | Description |
---|---|---|
IBiffStorage | value | The item to add to the list. |
IEnumerable<IBiffStorage>.GetEnumerator()
Returns an enumerator that can iterate through a collection.
Declaration
IEnumerator<IBiffStorage> IEnumerable<IBiffStorage>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<IBiffStorage> | An IEnumerator that can be used to iterate through the collection. |
IList.get_Item(Int32)
Declaration
object IList.get_Item(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
System.Object |
IList.Item[Int32]
Gets / sets record in the list at the specified index.
Declaration
object IList.this[] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
System.Object |
IList.set_Item(Int32, Object)
Declaration
void IList.set_Item(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |