ElementLink::MoveToIndex Method (DomainRoleInfo^, Int32)
Visual Studio 2015
Move this link to a specified index position in the list.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Parameters
- domainRole
-
Type:
Microsoft.VisualStudio.Modeling::DomainRoleInfo^
The role of the element in which to move this link.
- index
-
Type:
System::Int32
The new index. It must be less than the current number of links on this role.
A domain relationship defines two roles – the ends of the relationship at which the relationship connects to a ModelElement. Each role has a type and a cardinality. If the cardinality has an upper value greater than 1, then at runtime, several instances of the domain relationship can be connected to the same ModelElement. They form an ordered list. This method changes the order of the list. It moves the link to a specified index in the list.
Show: