using FastReport.Utils;
namespace FastReport.Data
{
///
/// Represents the collection of objects.
///
public class TableCollection : FRCollectionBase
{
///
/// Gets or sets a data table.
///
/// The index of a data table in this collection.
/// The data table with specified index.
public TableDataSource this[int index]
{
get { return List[index] as TableDataSource; }
set { List[index] = value; }
}
///
/// Sorts tables by their names.
///
public void Sort()
{
InnerList.Sort(new DataSourceComparer());
}
///
/// Initializes a new instance of the class with default settings.
///
/// The owner of this collection.
public TableCollection(Base owner) : base(owner)
{
}
}
}