
| Visual Basic (Declaration) | |
|---|---|
Public NotInheritable Class TupleSet Inherits System.Collections.ObjectModel.ReadOnlyCollection(Of Tuple) | |
| C# | |
|---|---|
public sealed class TupleSet : System.Collections.ObjectModel.ReadOnlyCollection<Tuple> | |
This class represents a collection of Tuples. TupleSet contains tuples with the same dimensionality that can be retrieved through the Definition property.
The following code example demonstrates how to fill a ListView with tuple set members. To run this example, paste the following code into a form that contains a ListView named listView.
| C# | Copy Code |
|---|---|
public void FillList(TupleSet tupleSet) { if(tupleSet.IsEmpty) return; foreach (Hierarchy hierarchy in tupleSet.Definition) { listView.Columns.Add(hierarchy.Caption); } foreach (Tuple tuple in tupleSet) { string[] captions = new string[tuple.Count]; for (int i = 0; i < tuple.Count; i++) { captions[i] = tuple[i].Caption; } listView.Items.Add(new ListViewItem(captions)); } } | |
System.Object
System.Collections.ObjectModel.ReadOnlyCollection<T>
GrapeCity.ActiveAnalysis.Data.TupleSet
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2