C# Класс Evbpc.Framework.Windows.Forms.Control.ControlCollection

Наследование: IEnumerable, ICloneable, IList, ICollection
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ControlCollection System
ICloneable object
IList bool
IList int
IList void
IList void
IList void
IList void
InternalAdd void
this objectIList.System

Открытые методы

Метод Описание
Add ( Control value ) : void

Adds the specified control to the control collection.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.add(v=vs.110).aspx

AddRange ( Control controls ) : void

Adds an array of control objects to the collection.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.addrange(v=vs.110).aspx

Clear ( ) : void

Removes all controls from the collection.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.clear(v=vs.110).aspx

Contains ( Control control ) : bool

Determines whether the specified control is a member of the collection.

ContainsKey ( string key ) : bool

Determines whether the ControlCollection contains an item with the specified key.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.containskey(v=vs.110).aspx

ControlCollection ( Control owner ) : System

Initializes a new instance of the ControlCollection class.

CopyTo ( Array array, int index ) : void

Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.

http://msdn.microsoft.com/en-us/library/system.windows.forms.layout.arrangedelementcollection.copyto(v=vs.110).aspx

Find ( string key, bool searchAllChildren ) : Evbpc.Framework.Windows.Forms.Control[]

Searches for controls by their Name property and builds an array of all the controls that match.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.find(v=vs.110).aspx

GetChildIndex ( Control child ) : int

Retrieves the index of the specified child control within the control collection.

http://msdn.microsoft.com/en-us/library/1fz293fh(v=vs.110).aspx

GetChildIndex ( Control child, bool throwException ) : int

Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection.

http://msdn.microsoft.com/en-us/library/ta8fcz9s(v=vs.110).aspx

GetEnumerator ( ) : IEnumerator

Retrieves a reference to an enumerator object that is used to iterate over a ControlCollection.

http://msdn.microsoft.com/en-us/library/ms158431(v=vs.110).aspx

IndexOf ( Control control ) : int

Retrieves the index of the specified control in the control collection.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.indexof(v=vs.110).aspx

IndexOfKey ( string key ) : int

Retrieves the index of the specified control in the control collection.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.indexof(v=vs.110).aspx

Remove ( Control value ) : void

Removes the specified control from the control collection.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.remove(v=vs.110).aspx

RemoveAt ( int index ) : void

Removes a control from the control collection at the specified indexed location.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.removeat(v=vs.110).aspx

RemoveByKey ( string key ) : void

Removes the child control with the specified key.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.removebykey(v=vs.110).aspx

SetChildIndex ( Control child, int newIndex ) : void

Sets the index of the specified child control in the collection to the specified index value.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.setchildindex(v=vs.110).aspx

this ( int index ) : Control

Indicates the Control at the specified indexed location in the collection.

http://msdn.microsoft.com/en-us/library/333f9hk4(v=vs.110).aspx

this ( string key ) : Control

Indicates a Control with the specified key in the collection.

http://msdn.microsoft.com/en-us/library/s1865435(v=vs.110).aspx

Приватные методы

Метод Описание
ControlCollection ( Control owner, List controls ) : System
ICloneable ( ) : object
IList ( object value ) : bool
IList ( object control ) : int
IList ( ) : void
IList ( int index ) : void
IList ( int index, object value ) : void
IList ( object control ) : void
InternalAdd ( Control value ) : void
this ( int index ) : objectIList.System

Описание методов

Add() публичный Метод

Adds the specified control to the control collection.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.add(v=vs.110).aspx
public Add ( Control value ) : void
value Control The to add to the control collection.
Результат void

AddRange() публичный Метод

Adds an array of control objects to the collection.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.addrange(v=vs.110).aspx
public AddRange ( Control controls ) : void
controls Control An array of objects to add to the collection.
Результат void

Clear() публичный Метод

Removes all controls from the collection.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.clear(v=vs.110).aspx
public Clear ( ) : void
Результат void

Contains() публичный Метод

Determines whether the specified control is a member of the collection.
public Contains ( Control control ) : bool
control Control The to locate in the collection.
Результат bool

ContainsKey() публичный Метод

Determines whether the ControlCollection contains an item with the specified key.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.containskey(v=vs.110).aspx
public ContainsKey ( string key ) : bool
key string The key to locate in the .
Результат bool

ControlCollection() публичный Метод

Initializes a new instance of the ControlCollection class.
public ControlCollection ( Control owner ) : System
owner Control A representing the control that owns the control collection.
Результат System

CopyTo() публичный Метод

Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.
http://msdn.microsoft.com/en-us/library/system.windows.forms.layout.arrangedelementcollection.copyto(v=vs.110).aspx
public CopyTo ( Array array, int index ) : void
array System.Array The one-dimensional that is the destination of the elements copied from the current collection. The array must have zero-based indexing.
index int The zero-based index in array at which copying begins.
Результат void

Find() публичный Метод

Searches for controls by their Name property and builds an array of all the controls that match.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.find(v=vs.110).aspx
public Find ( string key, bool searchAllChildren ) : Evbpc.Framework.Windows.Forms.Control[]
key string The key to locate in the .
searchAllChildren bool true to search all child controls; otherwise, false.
Результат Evbpc.Framework.Windows.Forms.Control[]

GetChildIndex() публичный Метод

Retrieves the index of the specified child control within the control collection.
http://msdn.microsoft.com/en-us/library/1fz293fh(v=vs.110).aspx
public GetChildIndex ( Control child ) : int
child Control The to search for in the control collection.
Результат int

GetChildIndex() публичный Метод

Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection.
http://msdn.microsoft.com/en-us/library/ta8fcz9s(v=vs.110).aspx
public GetChildIndex ( Control child, bool throwException ) : int
child Control The to search for in the control collection.
throwException bool true to throw an exception if the specified in the child parameter is not a control in the ; otherwise, false.
Результат int

GetEnumerator() публичный Метод

Retrieves a reference to an enumerator object that is used to iterate over a ControlCollection.
http://msdn.microsoft.com/en-us/library/ms158431(v=vs.110).aspx
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

IndexOf() публичный Метод

Retrieves the index of the specified control in the control collection.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.indexof(v=vs.110).aspx
public IndexOf ( Control control ) : int
control Control The to locate in the collection.
Результат int

IndexOfKey() публичный Метод

Retrieves the index of the specified control in the control collection.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.indexof(v=vs.110).aspx
public IndexOfKey ( string key ) : int
key string The to locate in the collection.
Результат int

Remove() публичный Метод

Removes the specified control from the control collection.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.remove(v=vs.110).aspx
public Remove ( Control value ) : void
value Control The to remove from the .
Результат void

RemoveAt() публичный Метод

Removes a control from the control collection at the specified indexed location.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.removeat(v=vs.110).aspx
public RemoveAt ( int index ) : void
index int The index value of the to remove.
Результат void

RemoveByKey() публичный Метод

Removes the child control with the specified key.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.removebykey(v=vs.110).aspx
public RemoveByKey ( string key ) : void
key string The name of the child control to remove.
Результат void

SetChildIndex() публичный Метод

Sets the index of the specified child control in the collection to the specified index value.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.controlcollection.setchildindex(v=vs.110).aspx
public SetChildIndex ( Control child, int newIndex ) : void
child Control The child to search for.
newIndex int The new index value of the control.
Результат void

this() публичный Метод

Indicates the Control at the specified indexed location in the collection.
http://msdn.microsoft.com/en-us/library/333f9hk4(v=vs.110).aspx
public this ( int index ) : Control
index int The index of the control to retrieve from the control collection.
Результат Control

this() публичный Метод

Indicates a Control with the specified key in the collection.
http://msdn.microsoft.com/en-us/library/s1865435(v=vs.110).aspx
public this ( string key ) : Control
key string The name of the control to retrieve from the control collection.
Результат Control