Class InfoObjectsExtensions
Extension methods for IInfoObjects.
Inheritance
Namespace: BiExcellence.OpenBi.Api.Commands.DataProviders
Assembly: BiExcellence.OpenBi.Api.DataProvider.dll
Syntax
public static class InfoObjectsExtensions
Methods
Axis(IEnumerable<IDimension>, DimensionAxis)
Returns all dimension on the specified axis.
Declaration
public static IEnumerable<IDimension> Axis(this IEnumerable<IDimension> dimensions, DimensionAxis axis)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDimension> | dimensions | The dimensions. |
DimensionAxis | axis | The dimension axis. |
Returns
Type | Description |
---|---|
IEnumerable<IDimension> |
ColumnAxis(IEnumerable<IDimension>)
Returns all dimension which are on the Columns axis.
Declaration
public static IEnumerable<IDimension> ColumnAxis(this IEnumerable<IDimension> dimensions)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDimension> | dimensions | The dimensions. |
Returns
Type | Description |
---|---|
IEnumerable<IDimension> |
FreeAxis(IEnumerable<IDimension>)
Returns all dimension which are on the Free axis.
Declaration
public static IEnumerable<IDimension> FreeAxis(this IEnumerable<IDimension> dimensions)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDimension> | dimensions | The dimensions. |
Returns
Type | Description |
---|---|
IEnumerable<IDimension> |
Hidden(IEnumerable<IKeyFigure>)
Returns all key figures which are hidden.
Declaration
public static IEnumerable<IKeyFigure> Hidden(this IEnumerable<IKeyFigure> keyFigures)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IKeyFigure> | keyFigures | The key figures. |
Returns
Type | Description |
---|---|
IEnumerable<IKeyFigure> |
InputReady(IEnumerable<IVariable>)
Returns all variables which are input ready.
Declaration
public static IEnumerable<IVariable> InputReady(this IEnumerable<IVariable> variables)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IVariable> | variables | The variables. |
Returns
Type | Description |
---|---|
IEnumerable<IVariable> |
Move(IEnumerable<IDimension>, IDimension, DimensionAxis, int)
Moves a dimension to a specific axis and position.
Declaration
public static void Move(this IEnumerable<IDimension> dimensions, IDimension dimension, DimensionAxis axis, int position)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDimension> | dimensions | The dimensions. |
IDimension | dimension | The dimension. |
DimensionAxis | axis | The axis. |
int | position | The position. |
Move(IEnumerable<IDimension>, IDimension, DimensionAxis)
Moves a dimension to a specific axis.
Declaration
public static void Move(this IEnumerable<IDimension> dimensions, IDimension dimension, DimensionAxis axis)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDimension> | dimensions | The dimensions. |
IDimension | dimension | The dimension. |
DimensionAxis | axis | The axis. |
Move(IEnumerable<IDimension>, IDimension, int)
Moves a dimension to a specific position.
Declaration
public static void Move(this IEnumerable<IDimension> dimensions, IDimension dimension, int position)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDimension> | dimensions | The dimensions. |
IDimension | dimension | The dimension. |
int | position | The position. |
Move(IEnumerable<IKeyFigure>, IKeyFigure, int)
Moves a key figure to a specific position.
Declaration
public static void Move(this IEnumerable<IKeyFigure> keyFigures, IKeyFigure keyFigure, int position)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IKeyFigure> | keyFigures | The key figures. |
IKeyFigure | keyFigure | The key figure. |
int | position | The position. |
Ordered<T>(IEnumerable<T>)
Returns the info objects in order base on the Position.
Declaration
public static IEnumerable<T> Ordered<T>(this IEnumerable<T> infoObjects) where T : IPositionableInfoObject<T>
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | infoObjects | The info objects. |
Returns
Type | Description |
---|---|
IEnumerable<T> |
Type Parameters
Name | Description |
---|---|
T | The info object type. |
RowAxis(IEnumerable<IDimension>)
Returns all dimension which are on the Rows axis.
Declaration
public static IEnumerable<IDimension> RowAxis(this IEnumerable<IDimension> dimensions)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IDimension> | dimensions | The dimensions. |
Returns
Type | Description |
---|---|
IEnumerable<IDimension> |
Swap(IDimension, IDimension)
Swaps the position and axis with another dimension.
Declaration
public static void Swap(this IDimension source, IDimension target)
Parameters
Type | Name | Description |
---|---|---|
IDimension | source | The source dimension. |
IDimension | target | The target dimension. |
Swap(IKeyFigure, IKeyFigure)
Swaps the position with another key figure.
Declaration
public static void Swap(this IKeyFigure source, IKeyFigure target)
Parameters
Type | Name | Description |
---|---|---|
IKeyFigure | source | The source key figure. |
IKeyFigure | target | The target key figure. |
Visible(IEnumerable<IKeyFigure>)
Returns all key figures which are visible.
Declaration
public static IEnumerable<IKeyFigure> Visible(this IEnumerable<IKeyFigure> keyFigures)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IKeyFigure> | keyFigures | The key figures |
Returns
Type | Description |
---|---|
IEnumerable<IKeyFigure> |