Class TotalCollection
Represents the collection of Total objects.
Inherited Members
Namespace: FastReport.Data
Assembly: FastReport.dll
Syntax
public class TotalCollection : FRCollectionBase, IList, ICollection, IEnumerable
Constructors
TotalCollection(Base)
Initializes a new instance of the TotalCollection class with default settings.
Declaration
public TotalCollection(Base owner)
Parameters
| Type | Name | Description |
|---|---|---|
| Base | owner | The owner of this collection. |
Properties
Item[Int32]
Gets or sets a total.
Declaration
public Total this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index of a total in this collection. |
Property Value
| Type | Description |
|---|---|
| Total | The total with specified index. |
Methods
CreateUniqueName(String)
Returns an unique total name based on given name.
Declaration
public string CreateUniqueName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The base name. |
Returns
| Type | Description |
|---|---|
| System.String | The unique name. |
FindByName(String)
Finds a total by its name.
Declaration
public Total FindByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of a total. |
Returns
| Type | Description |
|---|---|
| Total | The Total object if found; otherwise null. |