Class HierarchyElementCollection
Represents the collection of HierarchyElement.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Olap.Reports
Assembly: Syncfusion.Olap.Base.dll
Syntax
public class HierarchyElementCollection : CollectionBase, IList, ICollection, IEnumerable, ICloneable<HierarchyElementCollection>
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[Int32]
Gets or sets the HierarchyElement at the specified index.
Declaration
public HierarchyElement this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the hierarchy element object. |
Property Value
Type |
---|
HierarchyElement |
Item[String]
Gets the HierarchyElement with the specified name.
Declaration
public HierarchyElement this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
HierarchyElement |
Methods
Add(HierarchyElement)
Adds the specified hierarchy element.
Declaration
public int Add(HierarchyElement hierarchyElement)
Parameters
Type | Name | Description |
---|---|---|
HierarchyElement | hierarchyElement | The hierarchy element which is to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the hierarchy element object in the current collection. |
Clone()
Clones this instance.
Declaration
public HierarchyElementCollection Clone()
Returns
Type | Description |
---|---|
HierarchyElementCollection | A copy of this instance. |
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. |
OnInsertComplete(Int32, Object)
Performs additional custom processes after inserting a new element into the System.Collections.CollectionBase instance.
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which to insert |
System.Object | value | The new value of the element at |
Overrides
OnSetComplete(Int32, Object, Object)
Performs additional custom processes after setting a value in the System.Collections.CollectionBase instance.
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
System.Object | oldValue | The value to replace with |
System.Object | newValue | The new value of the element at |
Overrides
Remove(HierarchyElement)
Removes the specified hierarchy element.
Declaration
public void Remove(HierarchyElement hierarchyElement)
Parameters
Type | Name | Description |
---|---|---|
HierarchyElement | hierarchyElement | The hierarchy element which is to be removed. |