Class SortCollection
Represents a collection of sort conditions used in the Sort.
Inheritance
Implements
Inherited Members
Namespace: FastReport
Assembly: FastReport.OpenSource.dll
Syntax
public class SortCollection : CollectionBase, IList, ICollection, IEnumerable, IFRSerializable
Properties
Item[Int32]
Gets or sets the element at the specified index.
Declaration
public Sort this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of an element. |
Property Value
Type | Description |
---|---|
Sort | The element at the specified index. |
Methods
Add(Sort)
Adds an object to the end of this collection.
Declaration
public int Add(Sort value)
Parameters
Type | Name | Description |
---|---|---|
Sort | value | Object to add. |
Returns
Type | Description |
---|---|
System.Int32 | Index of the added object. |
AddRange(Sort[])
Adds the specified elements to the end of this collection.
Declaration
public void AddRange(Sort[] range)
Parameters
Type | Name | Description |
---|---|---|
Sort[] | range |
Assign(SortCollection)
Assigns values from another collection.
Declaration
public void Assign(SortCollection source)
Parameters
Type | Name | Description |
---|---|---|
SortCollection | source | Collection to assign from. |
Contains(Sort)
Determines whether an element is in the collection.
Declaration
public bool Contains(Sort value)
Parameters
Type | Name | Description |
---|---|---|
Sort | value | The object to locate in the collection. |
Returns
Type | Description |
---|---|
System.Boolean | true if object is found in the collection; otherwise, false. |
Deserialize(FRReader)
Deserializes the object.
Declaration
public void Deserialize(FRReader reader)
Parameters
Type | Name | Description |
---|---|---|
FRReader | reader | Reader object. |
IndexOf(Sort)
Returns the zero-based index of the first occurrence of an object.
Declaration
public int IndexOf(Sort value)
Parameters
Type | Name | Description |
---|---|---|
Sort | value | The object to locate in the collection. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1. |
Insert(Int32, Sort)
Inserts an object into this collection at the specified index.
Declaration
public void Insert(int index, Sort value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which value should be inserted. |
Sort | value | The object to insert. |
Remove(Sort)
Removes the specified object from the collection.
Declaration
public void Remove(Sort value)
Parameters
Type | Name | Description |
---|---|---|
Sort | value | Object to remove. |
Serialize(FRWriter)
Serializes the object.
Declaration
public void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |