%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
filtergripentity Field
See Also  Example
vdWebLibrary Namespace > gripmanager Class : filtergripentity Field
A user defined method that fires before an entity is added to grip collection

Syntax

JScript 
public var filtergripentity : gripmanager.gripEventDelegate;

Example

For example we do not allow user to move grip points of polylines.
C#Copy Code
function _filtergripentity(e) { 
       if (e.entity._t === vdConst.vdPolyline_code) { 
       e.cancel = true;//do not allow to move grip points of polylines 
       } 
 }

Remarks

The eventargs of the function is an object with the following properties:

sender: is always the vdrawObj entity: the entity that is going to be added to the grip collection cancel: a boolean value that defines if the entity is allowed by the user to be added. By default is false and the entity is allowed. Set it to true in order the passed entity not to be added to the grip collection

See Also