DiagramEditOperation.MoveShape Property
In This Article
Identifies the MoveShape operation.
#Declaration
TypeScript
static readonly MoveShape: string
#Property Value
Type | Description |
---|---|
string | Returns “Move |
#Remarks
The operation parameter returns the MoveShape
value if the RequestEditOperation event fired because a user moved a shape.
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px">
<ClientSideEvents RequestEditOperation="onRequestEditOperation" />
...
function onRequestEditOperation(s, e) {
if(e.operation === DiagramEditOperation.MoveShape) {
if(e.args.shape.type === "root") {
showWarning("You cannot move the 'Development' shape.");
e.allowed = false;
}
}
...
}
The RequestEditOperation event does not fire for the MoveShape operation if the AllowMoveShape property is set to false
.
See Also