Class SectionCollection
Collection of Section objects for a presentation.
Inheritance
SectionCollection
Assembly: DRIT.Presentation.dll
Syntax
public class SectionCollection : IEnumerable<Section>, IEnumerable
Properties
Count
Returns the number of sections.
Declaration
public int Count { get; }
Property Value
this[int]
Returns the section at the given zero-based index.
Declaration
public Section this[int index] { get; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
this[string]
Returns the section with the given name.
Declaration
public Section this[string name] { get; }
Parameters
| Type |
Name |
Description |
| string |
name |
|
Property Value
Exceptions
Methods
Add(string)
Adds a new section with the given name and returns it.
Declaration
public Section Add(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
Exceptions
| Type |
Condition |
| ArgumentException |
Thrown when a section with the same name already exists.
|
Contains(string)
Returns true if a section with the given name exists.
Declaration
public bool Contains(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
GetEnumerator()
Returns an enumerator that iterates through this collection.
Declaration
public IEnumerator<Section> GetEnumerator()
Returns
| Type |
Description |
| IEnumerator<Section> |
An enumerator that iterates through this collection.
|
Remove(Section)
Removes the specified section.
Returns true if found and removed.
Declaration
public bool Remove(Section section)
Parameters
| Type |
Name |
Description |
| Section |
section |
|
Returns
Remove(string)
Removes the section with the given name.
Returns true if the section was found and removed.
Declaration
public bool Remove(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
TryGetByName(string, out Section)
Tries to find a section by name. Returns false when not found.
Declaration
public bool TryGetByName(string name, out Section section)
Parameters
Returns
Implements