Search Results for

    Show / Hide Table of Contents

    Class DataSourceCollection

    Represents the collection of DataSourceBase objects.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    FRCollectionBase
    DataSourceCollection
    Inherited Members
    FRCollectionBase.Owner
    FRCollectionBase.AddRange(Base[])
    FRCollectionBase.AddRange(ObjectCollection)
    FRCollectionBase.Add(Base)
    FRCollectionBase.Insert(Int32, Base)
    FRCollectionBase.Remove(Base)
    FRCollectionBase.IndexOf(Base)
    FRCollectionBase.Contains(Base)
    FRCollectionBase.ToArray()
    FRCollectionBase.Equals(FRCollectionBase)
    FRCollectionBase.CopyTo(FRCollectionBase)
    FRCollectionBase.OnInsert(Int32, Object)
    FRCollectionBase.OnRemove(Int32, Object)
    FRCollectionBase.OnClear()
    Namespace: FastReport.Data
    Assembly: FastReport.Base.dll
    Syntax
    public class DataSourceCollection : FRCollectionBase, IList, ICollection, IEnumerable

    Constructors

    DataSourceCollection(Base)

    Initializes a new instance of the DataSourceCollection class with default settings.

    Declaration
    public DataSourceCollection(Base owner)
    Parameters
    Type Name Description
    Base owner

    The owner of this collection.

    Properties

    Item[Int32]

    Gets or sets a data source.

    Declaration
    public DataSourceBase this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    The index of a data source in this collection.

    Property Value
    Type Description
    DataSourceBase

    The data source with specified index.

    Methods

    FindByAlias(String)

    Finds a datasource by its alias.

    Declaration
    public DataSourceBase FindByAlias(string alias)
    Parameters
    Type Name Description
    System.String alias

    The alias of a datasource.

    Returns
    Type Description
    DataSourceBase

    The DataSourceBase object if found; otherwise null.

    FindByName(String)

    Finds a datasource by its name.

    Declaration
    public DataSourceBase FindByName(string name)
    Parameters
    Type Name Description
    System.String name

    The name of a datasource.

    Returns
    Type Description
    DataSourceBase

    The DataSourceBase object if found; otherwise null.

    Sort()

    Sorts data sources by their names.

    Declaration
    public void Sort()
    Back to top © 1998-2025 Copyright Fast Reports Inc.