Interface ITree
Базовое дерево.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface ITree : IApiObject, IApiEntity, INotifyPropertyChanged
Properties
FilterOptions
Настройки фильтрации, по которым профильтровано дерево.
Declaration
TreeFilterOptions FilterOptions { get; }
Property Value
| Type | Description |
|---|---|
| TreeFilterOptions |
FilterString
Строка, по которой профильтровано дерево.
Declaration
string FilterString { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsFiltered
Возвращает признак того, что дерево было отфильтровано.
Declaration
bool IsFiltered { get; }
Property Value
| Type | Description |
|---|---|
| bool |
RootNode
Возвращает корневой узел дерева.
Declaration
ITreeNode RootNode { get; }
Property Value
| Type | Description |
|---|---|
| ITreeNode |
Methods
ClearFilter()
Отменяет фильтрацию.
Declaration
void ClearFilter()
Filter(string, TreeFilterOptions)
Фильтровать дерево.
Declaration
void Filter(string filterString, TreeFilterOptions options = TreeFilterOptions.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filterString | Строка для фильтрации. |
| TreeFilterOptions | options | Опции фильтрации. |
FindNode(string)
Возвращает узел дерева по строковому расположению объекта.
Declaration
ITreeNode FindNode(string location)
Parameters
| Type | Name | Description |
|---|---|---|
| string | location | Строковое расположение объекта. |
Returns
| Type | Description |
|---|---|
| ITreeNode | Найденный узел дерева (или null). |
FindNodeRecursive(IApiObject)
Возвращает узел дерева по объекту, поиск ведётся рекурсивно.
Declaration
IReadOnlyList<ITreeNode> FindNodeRecursive(IApiObject apiObject)
Parameters
| Type | Name | Description |
|---|---|---|
| IApiObject | apiObject | Объект. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<ITreeNode> | Узел дерева с объектом. |
GetAvailableTreeFilterOptions()
Возвращает доступные для данного дерева опции фильтрации.
Declaration
IReadOnlyList<TreeFilterOptions> GetAvailableTreeFilterOptions()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<TreeFilterOptions> | Список доступных опций фильтрации. |
GetNextFilterSuitableTreeNode(ITreeNode)
Возвращает следующий подходящий под фильтр узел дерева от заданного.
Declaration
ITreeNode GetNextFilterSuitableTreeNode(ITreeNode treeNode)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeNode | treeNode | Узел дерева, от которого начинается поиск. |
Returns
| Type | Description |
|---|---|
| ITreeNode | Найденный узел. |
GetPreviousFilterSuitableTreeNode(ITreeNode)
Возвращает предыдущий подходящий под фильтр узел дерева от заданного.
Declaration
ITreeNode GetPreviousFilterSuitableTreeNode(ITreeNode treeNode)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeNode | treeNode | Узел дерева, от которого начинается поиск. |
Returns
| Type | Description |
|---|---|
| ITreeNode | Найденный узел. |