Table of Contents

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

entity object

The object to be placed.

ToBack bool

If this value is true then the object will be placed to the beginning of the list else it will be placed to the end.

collection object

Optional.If not set, the GetActiveLayout().Entities is used.

Returns

bool

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);