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