Class RelationCollection
Represents the collection of Relation objects.
Inherited Members
Namespace: FastReport.Data
Assembly: FastReport.Base.dll
Syntax
public class RelationCollection : FRCollectionBase, IList, ICollection, IEnumerable
Constructors
RelationCollection(Base)
Initializes a new instance of the RelationCollection class with default settings.
Declaration
public RelationCollection(Base owner)
Parameters
Type | Name | Description |
---|---|---|
Base | owner | The owner of this collection. |
Properties
Item[Int32]
Gets or sets a relation.
Declaration
public Relation this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of a relation in this collection. |
Property Value
Type | Description |
---|---|
Relation | The relation with specified index. |
Methods
FindByAlias(String)
Finds a relation by its alias.
Declaration
public Relation FindByAlias(string alias)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | The alias of a relation. |
Returns
Type | Description |
---|---|
Relation | The Relation object if found; otherwise null. |
FindByName(String)
Finds a relation by its name.
Declaration
public Relation FindByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of a relation. |
Returns
Type | Description |
---|---|
Relation | The Relation object if found; otherwise null. |
FindEqual(Relation)
Finds a relation that is equal to specified one.
Declaration
public Relation FindEqual(Relation rel)
Parameters
Type | Name | Description |
---|---|---|
Relation | rel | Another relation to compare with. |
Returns
Type | Description |
---|---|
Relation | The Relation object if found; otherwise null. |