Class HierarchyElementCollection
Represents the collection of HierarchyElement.
Inheritance
Namespace: Syncfusion.Olap.UWP.Reports
Assembly: Syncfusion.Olap.UWP.dll
Syntax
public class HierarchyElementCollection : Collection<HierarchyElement>
Constructors
HierarchyElementCollection()
Initializes a new instance of the HierarchyElementCollection class.
Declaration
public HierarchyElementCollection()
HierarchyElementCollection(DimensionElement)
Initializes a new instance of the HierarchyElementCollection class.
Declaration
public HierarchyElementCollection(DimensionElement parentDimesionElement)
Parameters
| Type | Name | Description |
|---|---|---|
| DimensionElement | parentDimesionElement | The parent dimension element. |
Properties
Item[String]
Gets the HierarchyElement with the specified name.
Declaration
public HierarchyElement this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The hierarchy element name. |
Property Value
| Type | Description |
|---|---|
| HierarchyElement |
Methods
Add(HierarchyElement)
Adds the specified hierarchy element.
Declaration
public void Add(HierarchyElement hierarchyElement)
Parameters
| Type | Name | Description |
|---|---|---|
| HierarchyElement | hierarchyElement | The hierarchy element to be added. |
FindHierarchyElementByName(String)
Finds the hierarchy element by its name.
Declaration
public HierarchyElement FindHierarchyElementByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the hierarchy element. |
Returns
| Type | Description |
|---|---|
| HierarchyElement | The hierarchy element that is searched for. |
InsertItem(Int32, HierarchyElement)
Inserts an element into the System.Collections.ObjectModel.Collection<> at the specified index.
Declaration
protected override void InsertItem(int index, HierarchyElement item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which item should be inserted. |
| HierarchyElement | item | The object to insert. The value can be null for reference types. |
SetItem(Int32, HierarchyElement)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, HierarchyElement item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to replace. |
| HierarchyElement | item | The new value for the element at the specified index. The value can be null for reference types. |