Field ActiveSelectionModify
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
Represents a user define function of type ActiveSelectionModifyDelegate that will be called for every entity added or remove to the ActiveSelection()
public ActiveSelectionModifyDelegate ActiveSelectionModify
Returns
- ActiveSelectionModifyDelegate
- Represents a user define function of type that will be called for every entity added or remove to the
Examples
Example :Begin a Move command for all vdLine entities in the drawing
vdcanvas.scriptCommand.ActiveSelectionModify = function (args) {
if (args.action == 0) {//if it is in adding mode and item is not vdLine then it is not added to selection
if (args.item && args.vdraw.Fig_codeToString(args.item._t) !== "vdLine") args.cancel = true;
}
}
vdcanvas.scriptCommand.parseCommands(["select all"]);
vdcanvas.scriptCommand.move(null, null,function (vdraw) { vdraw.scriptCommand.ActiveSelectionModify = null;});//clear the event