Interface ILinkable
Связываемая сущность.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface ILinkable : ILocateableApiObject, IAbleToHaveId, IApiObject, IApiEntity, INotifyPropertyChanged
Properties
LinkedElement
Связанный объект.
Declaration
IElement LinkedElement { get; }
Property Value
| Type | Description |
|---|---|
| IElement |
Links
Возвращает коллекцию связей элемента.
Declaration
IApiReadOnlyCollection<ILink> Links { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<ILink> |
OwnerGroup
Группа, в которой находится экземпляр связанного объекта.
Declaration
IGroup OwnerGroup { get; }
Property Value
| Type | Description |
|---|---|
| IGroup |
Methods
CreateLinkableEndsTree(LinkDefClassificationTreeOptions, ISet<LinkEndMultiplicity>)
Создает дерево концов связей.
Declaration
ILinkableEndsTree CreateLinkableEndsTree(LinkDefClassificationTreeOptions options = LinkDefClassificationTreeOptions.Default, ISet<LinkEndMultiplicity> showMultiplicities = null)
Parameters
| Type | Name | Description |
|---|---|---|
| LinkDefClassificationTreeOptions | options | Опции. |
| ISet<LinkEndMultiplicity> | showMultiplicities | Отображаемые множественности. |
Returns
| Type | Description |
|---|---|
| ILinkableEndsTree | Созданное дерево концов связей. |
CreateLinksTree(ElementLinksTreeOptions)
Создаёт дерево связей.
Declaration
IElementLinksTree CreateLinksTree(ElementLinksTreeOptions options = ElementLinksTreeOptions.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| ElementLinksTreeOptions | options | Опции. |
Returns
| Type | Description |
|---|---|
| IElementLinksTree | Созданное дерево связей. |
GetLink(ILinkDefinitionEnd)
Возвращает существующую связь по данному определению конца связи (если есть).
Declaration
ILink GetLink(ILinkDefinitionEnd linkDefinitionEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| ILinkDefinitionEnd | linkDefinitionEnd | Определение конца связи. |
Returns
| Type | Description |
|---|---|
| ILink | Связь. |
GetLinkInstance(ILink)
Возвращает экземпляр связи.
Declaration
ILinkInstance GetLinkInstance(ILink link)
Parameters
| Type | Name | Description |
|---|---|---|
| ILink | link | Связь. |
Returns
| Type | Description |
|---|---|
| ILinkInstance | Экземпляр связи. |