Method ChangeOrder
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
ChangeOrder(object, bool, object)
Places an existing object of the collection to the beginning or the end of the passed collection.
public bool ChangeOrder(object entity, bool ToBack, object collection)
Parameters
entityobjectThe object to be placed.
ToBackboolIf this value is true then the object will be placed to the beginning of the list else it will be placed to the end.
collectionobjectOptional.If not set, the GetActiveLayout().Entities is used.
Returns
Examples
We create a line using AddLine method wich returns an objoct and not scriotCommand.line which does not and then using ChangeOrder method we place it in the back.We do not set the collection,so the collection will contain all of the entities of the active layout.
line = vdcanvas.AddLine([-5, -2, 0], [5, 2, 0]);
vdcanvas.ChangeOrder(line, false);