C# Класс NArrange.Core.SortedInserter

Sorted inserter.
Наследование: IElementInserter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
InsertElement ( ICodeElement parentElement, ICodeElement codeElement ) : void

Inserts an element into the parent using the strategy defined by the sort configuration.

SortedInserter ( ElementType elementType, SortBy sortBy ) : System

Creates a new sorted inserter using the specified sorting configuration.

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

Метод Описание
CreateComparer ( SortBy sortBy ) : IComparer

Creates a comparer based on the sort configuration.

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

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

Inserts an element into the parent using the strategy defined by the sort configuration.
public InsertElement ( ICodeElement parentElement, ICodeElement codeElement ) : void
parentElement ICodeElement Parent element.
codeElement ICodeElement Code element to insert.
Результат void

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

Creates a new sorted inserter using the specified sorting configuration.
public SortedInserter ( ElementType elementType, SortBy sortBy ) : System
elementType ElementType Type of the element.
sortBy NArrange.Core.Configuration.SortBy The sort by.
Результат System