Class gripmanager
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
Represents an object that exports commands which are support Undo History and exporting to Script
This is a class object that manage grips.it is accessible by GripManager
public class gripmanager
- Inheritance
-
gripmanager
- Inherited Members
Fields
- aftermovegrip
A user defined method that fires just after a grip of an entity has been moved.
- beforemovegrip
A user defined method that fires just before a grip of an entity move.
- filtergripentity
A user defined method that fires before an entity is added to grip collection
- gripselectionchanged
A user defined method that fires when an entity is added or removed from the grip collection
Properties
- Enable
If it is true grips are added and drawn.By default is true. (after a redraw or refresh call)(bydefault is true) Note in order to see grips,after you have enabled them you need to call a refresh() or a redraw() to see them on the canvas.
- GripColor
An array of byte (0-255) Red,green,blue,alpha [R,G,B,A]of the color of the grip rectangle.Default value is [0,0,255,255] (blue with no transparency).
- GripRotationColor
An array of byte (0-255) Red,green,blue,alpha [R,G,B,A]of the color of the grip rectangle used to ratate the entity.Default value is [0, 255, 0, 255] (green with no transparency).
- GripSize
An integer of grip box pixel size of each side.By default is 15 (pixels).
- MaxGrips
The maximum number in total of grips that will be draw on the canvas.Default value is 100.
- SelectMode
Get/Set the grip action.Default value is GRIPMODE_AUTO and the grips are selected when mouse down on a figure.
Methods
- AddItem(object)
Add an entity in a collection which will use grips.If Enable = false no entity will be added.
- ContainsItem(object)
Returns true if the entity exists in the grip selection and false if it does not exist.
- GetEntityGrips(object)
Returns an array of points in world Coordinate System that represent the grip of the passed entity.
Currently supported entities are:vdLine,vdPolyline,vdRect,vdText,vdPoint,vdAttrib,vdAttribDef,vdInsert,vdImage,vdArc.vdCircle,vdEllipse,vdNote. vdLine_code and the StartPoint , EndPoint are added.
- GetGripIndexesFromPoint(int, int)
returns an array contains the entities with their grip indices that exists over the passed point
- GetItem(int)
Returns the entity on the specific index in the grip collection.
- RemoveItem(object)
Removes an entity from the collection of the entities which use grips.
- clear()
Clears all the grips of the active layout.Note in order to not see any more the grips,you need to call a refresh() or a redraw().
- count()
Returns the number of selected entities in the grip collection.