======Класс CrsContainer====== Класс представляющий коллекцию элементов поперечника * **Пространство имен:** [[developers:references:topomatic.crs.templates|Topomatic.Crs.Templates]] * **Сборка:** Topomatic.Crs (в Topomatic.Crs.dll) =====Иерархия наследования===== * System.Object * [[developers:references:topomatic.crs.templates.crscomponent|Topomatic.Crs.Templates.CrsComponent]] * Topomatic.Crs.Templates.CrsContainer * [[developers:references:topomatic.crs.templates.crsconstruction|Topomatic.Crs.Templates.CrsConstruction]] * [[developers:references:topomatic.crs.templates.crsdesigncontext|Topomatic.Crs.Templates.CrsDesignContext]] =====Синтаксис===== public abstract class CrsContainer : CrsComponent, IEnumerable, IEnumerable =====Свойства===== ^Тип^Имя^Описание^ |{{developers:references:property.png|Свойство}}|[[developers:references:topomatic.crs.templates.crscontainer.count|Count]]| Количество элементов в коллекции | |{{developers:references:property.png|Свойство}}|[[developers:references:topomatic.crs.templates.crscomponent.designcontext|DesignContext]]| Ссылка на корневой контекст проектирования (Наследуется от [[developers:references:topomatic.crs.templates.crscomponent|CrsComponent]].)| |{{developers:references:property.png|Свойство}}|[[developers:references:topomatic.crs.templates.crscontainer.item_system.string|Item[String]]]| | |{{developers:references:property.png|Свойство}}|[[developers:references:topomatic.crs.templates.crscontainer.item_system.int32|Item[Int32]]]| | |{{developers:references:property.png|Свойство}}|[[developers:references:topomatic.crs.templates.crscomponent.name|Name]]| Имя элемента (Наследуется от [[developers:references:topomatic.crs.templates.crscomponent|CrsComponent]].)| |{{developers:references:property.png|Свойство}}|[[developers:references:topomatic.crs.templates.crscomponent.owner|Owner]]| Ссылка на владелеца элемента (Наследуется от [[developers:references:topomatic.crs.templates.crscomponent|CrsComponent]].)| =====Методы===== ^Тип^Имя^Описание^ |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.add_topomatic.crs.templates.crscomponent|Add(CrsComponent)]]| Метод добавляет элемент в коллекцию | |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.addrange_system.collections.ienumerable|AddRange(IEnumerable)]]| Добавляем коллекцию элементов | |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.clear|Clear()]]| Удаляет все элементы из коллекции | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:topomatic.crs.templates.crscontainer.deserialize_topomatic.crs.templates.crscontainer_system.string|Deserialize(CrsContainer, String)]]| | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:topomatic.crs.templates.crscontainer.deserialize_topomatic.crs.templates.crscontainer_topomatic.crs.ast.astexpression|Deserialize(CrsContainer, AstExpression)]]| | |{{developers:references:method.png|Метод}}|Equals(Object)| Определяет, равен ли заданный объект текущему объекту. (Наследуется от Object.)| |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.findcomponent_system.string|FindComponent(String)]]| | |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.findcontour_system.int32|FindContour(Int32)]]| | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:topomatic.crs.templates.crscontainer.foreachcontour_topomatic.crs.templates.crscontainer_system.predicate_1_system.action_1|ForEachContour(CrsContainer, Predicate, Action)]]| | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:topomatic.crs.templates.crscontainer.foreachnode_topomatic.crs.templates.crscontainer_system.predicate_1_system.action_1|ForEachNode(CrsContainer, Predicate, Action)]]| | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:topomatic.crs.templates.crscontainer.foreachvolume_topomatic.crs.templates.crscontainer_system.predicate_1_system.action_1|ForEachVolume(CrsContainer, Predicate, Action)]]| | |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.getenumerator|GetEnumerator()]]| Возвращает перечислитель, осуществляющий перебор элементов коллекции CrsContainer. | |{{developers:references:method.png|Метод}}|GetHashCode()| Служит хэш-функцией по умолчанию. (Наследуется от Object.)| |{{developers:references:method.png|Метод}}|GetType()| Возвращает объект Type для текущего экземпляра. (Наследуется от Object.)| |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.indexof_topomatic.crs.templates.crscomponent|IndexOf(CrsComponent)]]| Метод возвращает индекс элемента | |{{developers:references:method.png|Метод}}|[[developers:references:topomatic.crs.templates.crscontainer.remove_topomatic.crs.templates.crscomponent|Remove(CrsComponent)]]| Метод удаляет элемент и коллекции | |{{developers:references:method.png|Метод}}{{developers:references:static.png|Статический}}|[[developers:references:topomatic.crs.templates.crscontainer.serialize_topomatic.crs.templates.crscontainer_topomatic.crs.templates.crscomponent|Serialize(CrsContainer, CrsComponent)]]| | |{{developers:references:method.png|Метод}}|ToString()| Возвращает строку, представляющую текущий объект. (Наследуется от Object.)|