Class DynamicElementCollection
- Namespace
- Dynamicweb.Rendering.Designer
- Assembly
- Dynamicweb.Core.dll
A collection of DynamicElement
public class DynamicElementCollection : List<DynamicElement>, IList<DynamicElement>, ICollection<DynamicElement>, IReadOnlyList<DynamicElement>, IReadOnlyCollection<DynamicElement>, IEnumerable<DynamicElement>, IList, ICollection, IEnumerable
- Inheritance
-
DynamicElementCollection
- Implements
- Inherited Members
- Extension Methods
Methods
Add(DynamicElement)
Adds the specified item.
public void Add(DynamicElement item)
Parameters
item
DynamicElementThe item.
ElementExits(string)
Checks if a DynamicElement exists based on the specified name.
public bool ElementExits(string name)
Parameters
name
stringThe name.
Returns
GetElementByName(string)
Gets a DynamicElement by its name.
public DynamicElement? GetElementByName(string name)
Parameters
name
stringThe name.
Returns
Sort(SortBy)
Sorts the collection with the specified sort type.
public void Sort(DynamicElementCollection.SortBy sortType)
Parameters
sortType
DynamicElementCollection.SortByType of the sort.