Table of Contents

Class TabularCollectionHelper

Inheritance
TabularCollectionHelper
Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll
public static class TabularCollectionHelper

Methods

ForEach<T>(IEnumerable<T>, Action<T>)

Provide a lambda statement that is executed once for each object in the collection.

public static void ForEach<T>(this IEnumerable<T> collection, Action<T> action) where T : ITabularNamedObject

Parameters

Type Name Description
IEnumerable<T> collection
Action<T> action

Type Parameters

Name Description
T

Examples

Selected.Measures.ForEach(obj => obj.Name += " OLD");

InPerspective(IEnumerable<Column>, string, bool)

Adds or removes all columns in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Column> columns, string perspective, bool value)

Parameters

Type Name Description
IEnumerable<Column> columns
string perspective
bool value

InPerspective(IEnumerable<Column>, Perspective, bool)

Adds or removes all columns in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Column> columns, Perspective perspective, bool value)

Parameters

Type Name Description
IEnumerable<Column> columns
Perspective perspective
bool value

InPerspective(IEnumerable<Hierarchy>, string, bool)

Adds or removes all hierarchies in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Hierarchy> hierarchies, string perspective, bool value)

Parameters

Type Name Description
IEnumerable<Hierarchy> hierarchies
string perspective
bool value

InPerspective(IEnumerable<Hierarchy>, Perspective, bool)

Adds or removes all hierarchies in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Hierarchy> hierarchies, Perspective perspective, bool value)

Parameters

Type Name Description
IEnumerable<Hierarchy> hierarchies
Perspective perspective
bool value

InPerspective(IEnumerable<Measure>, string, bool)

Adds or removes all measures in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Measure> measures, string perspective, bool value)

Parameters

Type Name Description
IEnumerable<Measure> measures
string perspective
bool value

InPerspective(IEnumerable<Measure>, Perspective, bool)

Adds or removes all measures in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Measure> measures, Perspective perspective, bool value)

Parameters

Type Name Description
IEnumerable<Measure> measures
Perspective perspective
bool value

InPerspective(IEnumerable<Table>, string, bool)

Adds or removes all tables in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Table> tables, string perspective, bool value)

Parameters

Type Name Description
IEnumerable<Table> tables
string perspective
bool value

InPerspective(IEnumerable<Table>, Perspective, bool)

Adds or removes all tables in the collection to the specified perspective

public static void InPerspective(this IEnumerable<Table> tables, Perspective perspective, bool value)

Parameters

Type Name Description
IEnumerable<Table> tables
Perspective perspective
bool value

SetDisplayFolder(IEnumerable<Measure>, string)

Sets the Display Folder property of all measures in the collection at once

public static void SetDisplayFolder(this IEnumerable<Measure> measures, string displayFolder)

Parameters

Type Name Description
IEnumerable<Measure> measures
string displayFolder