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

Class ControlCollection

A collection of Control objects on a slide.

Maps to the collection of ctrl parts associated with a slide in the OOXML package.

Inheritance
object
ControlCollection
Implements
IList<Control>
ICollection<Control>
IEnumerable<Control>
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 ControlCollection : IList<Control>, ICollection<Control>, IEnumerable<Control>, IEnumerable

Constructors

ControlCollection()

Initializes a new instance of the ControlCollection class.

Declaration
public ControlCollection()

Properties

Count

Gets the number of items in this collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

IsReadOnly

Gets or sets whether is read only is enabled.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
bool

this[int]

Gets or sets the value associated with this object.

Declaration
public Control this[int index] { get; set; }
Parameters
Type Name Description
int index
Property Value
Type Description
Control

Methods

Add(Control)

Adds the value to this control collection.

Declaration
public void Add(Control item)
Parameters
Type Name Description
Control item

The item to add, remove, or inspect.

Add(string, ControlType)

Creates and adds a new control with the specified name and type.

Declaration
public Control Add(string name, ControlType type)
Parameters
Type Name Description
string name
ControlType type
Returns
Type Description
Control

Clear()

Removes all entries from this control collection.

Declaration
public void Clear()

Contains(Control)

Determines whether this control collection contains the specified item.

Declaration
public bool Contains(Control item)
Parameters
Type Name Description
Control item

The item to add, remove, or inspect.

Returns
Type Description
bool

true if the operation succeeds; otherwise, false.

CopyTo(Control[], int)

Copies the collection items to the supplied destination array.

Declaration
public void CopyTo(Control[] array, int arrayIndex)
Parameters
Type Name Description
Control[] array

The destination array that receives the copied items.

int arrayIndex

GetEnumerator()

Returns an enumerator that iterates through this collection.

Declaration
public IEnumerator<Control> GetEnumerator()
Returns
Type Description
IEnumerator<Control>

An enumerator that iterates through this collection.

IndexOf(Control)

Returns the zero-based index of the specified item.

Declaration
public int IndexOf(Control item)
Parameters
Type Name Description
Control item

The item to add, remove, or inspect.

Returns
Type Description
int

The index of value produced by the operation.

Insert(int, Control)

Inserts an item at the specified zero-based index.

Declaration
public void Insert(int index, Control item)
Parameters
Type Name Description
int index

The zero-based index of the item.

Control item

The item to add, remove, or inspect.

Remove(Control)

Removes the value from this control collection.

Declaration
public bool Remove(Control item)
Parameters
Type Name Description
Control item

The item to add, remove, or inspect.

Returns
Type Description
bool

true if the operation succeeds; otherwise, false.

RemoveAt(int)

Removes the item at the specified zero-based index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

The zero-based index of the item.

Implements

IList<T>
ICollection<T>
IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

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

Generated by DocFX