Table of Contents

Class BaseFields<T>

Namespace: FastReport.Olap.Cube
Assembly: FastCube.Core.dll

List binding for fields.

[ListBindable(false)]
public class BaseFields<T> : BindingList<T>, IFieldsContainer, IBaseDataSetOwner where T : BaseField

Type Parameters

T

Inheritance

objectCollection<T>BindingList<T>BaseFields<T>

Implements

IFieldsContainer, IBaseDataSetOwner

Constructors

BaseFields(object)

Creates a new instance with owner

public BaseFields(object owner)

Parameters

owner object

Properties

DataSet

Gets or sets DataSet of the list.

[Browsable(false)]
public IBaseDataSet DataSet { get; set; }

Property Value

IBaseDataSet

Owner

Gets owner of the object.

public object Owner { get; }

Property Value

object

Methods

Assign(BaseFields<T>)

Move objects from source list to this list.

public void Assign(BaseFields<T> source)

Parameters

source BaseFields<T>

GetByName(string)

Returns field by name.

public BaseField GetByName(string name)

Parameters

name string

Returns

BaseField

GetDisplayText(object)

Returns display text by value (in this case value is child field).

public string GetDisplayText(object value)

Parameters

value object

Returns

string

InitFields()

Initializes all fields. Calls FastReport.Olap.Cube.BaseField.Init method of all fields.

public void InitFields()

InsertItem(int, T)

Inserts the specified item in the list at the specified index.

protected override void InsertItem(int index, T item)

Parameters

index int

The zero-based index where the item is to be inserted.

item T

The item to insert in the list.

RemoveItem(int)

Removes the item at the specified index.

protected override void RemoveItem(int index)

Parameters

index int

The zero-based index of the item to remove.

Exceptions

NotSupportedException

You are removing a newly added item and System.ComponentModel.IBindingList.AllowRemove is set to false.