Interface IFormulaGroup
Группа формул.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface IFormulaGroup : IBaseGroup, ILocateableApiObject, IAbleToHaveId, IAbleToHaveChangeableName, IAbleToHaveName, IAbleToHaveDescription, IDeleteableApiObject, IFormulaGroupOwner, IBaseGroupOwner, IApiObject, IApiEntity, INotifyPropertyChanged
Properties
Formulas
Возвращает формулы данной группы.
Declaration
IApiReadOnlyCollection<IFormula> Formulas { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IFormula> |
ParentGroup
Возвращает группу, в которой находится данная группа.
Declaration
IFormulaGroup ParentGroup { get; }
Property Value
| Type | Description |
|---|---|
| IFormulaGroup |
Methods
CanMoveTo(IFormulaGroupOwner)
Возвращает признак, может ли группа быть перемещена в указанного владельца группы.
Declaration
bool CanMoveTo(IFormulaGroupOwner destinationGroupOwner)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormulaGroupOwner | destinationGroupOwner | Владелец группы назначения. |
Returns
| Type | Description |
|---|---|
| bool |
|
CreateFormula(string, string, string, string, Guid?, ObjectStorageType)
Создает формулу.
Declaration
IFormula CreateFormula(string name, string body, string code = null, string description = null, Guid? id = null, ObjectStorageType storageType = ObjectStorageType.Persistent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Имя формулы. |
| string | body | Тело формулы. |
| string | code | Код формулы. |
| string | description | Описание. |
| Guid? | id | Уникальный идентификатор формулы. |
| ObjectStorageType | storageType | Тип хранения. |
Returns
| Type | Description |
|---|---|
| IFormula | Созданная формула. |
CreateFormulaGroup(string, Guid?, ObjectStorageType)
Создает группу формул.
Declaration
IFormulaGroup CreateFormulaGroup(string name, Guid? id = null, ObjectStorageType storageType = ObjectStorageType.Persistent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Имя группы. |
| Guid? | id | Уникальный идентификатор группы. |
| ObjectStorageType | storageType | Тип хранения. |
Returns
| Type | Description |
|---|---|
| IFormulaGroup | Созданная группа формул. |
MoveTo(IFormulaGroupOwner)
Перемещает группу в указанного владельца групп.
Declaration
void MoveTo(IFormulaGroupOwner destinationGroupOwner)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormulaGroupOwner | destinationGroupOwner | Владелец группы назначения. |