• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SectionCollection

Collection of Section objects for a presentation.

Inheritance
object
SectionCollection
Implements
IEnumerable<Section>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Presentation
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
Type Description
int

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
Type Description
Section

this[string]

Returns the section with the given name.

Declaration
public Section this[string name] { get; }
Parameters
Type Name Description
string name
Property Value
Type Description
Section
Exceptions
Type Condition
KeyNotFoundException

Thrown when no section with that name exists.

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
Type Description
Section
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
Type Description
bool

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
Type Description
bool

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
Type Description
bool

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
Type Name Description
string name
Section section
Returns
Type Description
bool

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX